mirror of
https://github.com/jazir555/GamesDows.git
synced 2025-08-06 21:28:28 +02:00
Update Enable GamesDows.bat
Changed query user to whoami
This commit is contained in:
@@ -25,7 +25,7 @@ echo Create the DelayedExplorerStart.bat script in the Steam folder
|
|||||||
(
|
(
|
||||||
echo @echo off
|
echo @echo off
|
||||||
echo Check if user is logged on
|
echo Check if user is logged on
|
||||||
echo query user ^| find /i "%USERNAME%" ^>nul
|
echo whoami ^| find /i "%USERNAME%" ^>nul
|
||||||
echo if ERRORLEVEL 1 exit
|
echo if ERRORLEVEL 1 exit
|
||||||
echo Set Shell back to Explorer
|
echo Set Shell back to Explorer
|
||||||
echo REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v Shell /t REG_SZ /d "%EXPLORER_PATH%" /f
|
echo REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v Shell /t REG_SZ /d "%EXPLORER_PATH%" /f
|
||||||
|
Reference in New Issue
Block a user