Update Enable GamesDows Playnite V3.bat

This commit is contained in:
jazir5 2024-11-03 21:34:11 -08:00 committed by GitHub
parent a343a75727
commit 214f2ddd5f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,6 +14,9 @@ SET "EXPLORER_PATH=%SystemRoot%\explorer.exe"
SET "VBS_NAME=RunBatchSilently.vbs"
SET "VBS_PATH=%PLAYNITE_FOLDER%\%VBS_NAME%"
REM Disable Logon UI
reg add "%KEY_NAME%" /v DisableLogonUI /t REG_DWORD /d 1 /f
echo Creating DelayedExplorerStart.bat script
(
@ -22,6 +25,10 @@ echo rem Check if user is logged on
echo whoami ^| find /i "%%USERNAME%%" ^>nul
echo if ERRORLEVEL 1 exit
REM Disable Logon UI
reg add "%KEY_NAME%" /v DisableLogonUI /t REG_DWORD /d 1 /f
echo rem Set taskbar to autohide
echo powershell -command ^^
"^$settingsPath = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3';" ^^
@ -129,9 +136,6 @@ echo Applying system optimizations
REM Disable the boot UI
bcdedit.exe -set {globalsettings} bootuxdisabled on
REM Disable Logon UI
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DisableLogonUI /t REG_DWORD /d 1 /f
REM Disable Visual Effects
reg add "HKCU\Control Panel\Desktop" /v VisualFXSetting /t REG_DWORD /d 2 /f