Compare commits

...

16 Commits
v8 ... main

Author SHA1 Message Date
jazir5
bf08fb5546
Update Enable GamesDows Playnite.bat 2025-03-05 22:42:39 -08:00
jazir5
5fe58bc56a
Update Enable GamesDows Steam V3.bat 2025-03-05 22:42:16 -08:00
jazir5
3689b68215
Update Enable GamesDows Steam V3.bat 2025-03-05 22:41:55 -08:00
jazir5
87c64e1313
Update Enable GamesDows Playnite.bat 2025-03-05 22:41:28 -08:00
jazir5
0dfeccd96d
Update Enable GamesDows Steam V3.bat 2025-03-05 22:39:59 -08:00
jazir5
88d9e2972a
Update Enable GamesDows Playnite.bat 2025-03-05 22:25:03 -08:00
jazir5
cb9218a3d0
Update Enable GamesDows Steam V3.bat 2025-03-05 22:23:39 -08:00
jazir5
24a9f0e798
Update Enable GamesDows Steam V3.bat 2025-03-05 22:21:10 -08:00
jazir5
f98ba713bd
Create steam.manifest 2025-03-05 22:13:28 -08:00
jazir5
89f4b71825
Delete manifests directory 2025-03-05 22:13:14 -08:00
jazir5
785a97b697
Create steam.manifest 2025-03-05 22:12:38 -08:00
jazir5
9f62c88fc1
Update Disable Gamesdows V3.bat 2025-03-05 15:36:45 -08:00
jazir5
56c5b6a91e
Update Enable GamesDows Playnite.bat 2025-03-05 15:27:29 -08:00
jazir5
fafd7a2010
Update Enable GamesDows Steam V3.bat 2025-02-15 15:31:18 -08:00
jazir5
1ca95e4131
Update Enable GamesDows Playnite.bat 2025-02-15 15:31:06 -08:00
jazir5
d3ee9e4289
Delete decky/Placeholder 2024-12-28 16:43:39 -08:00
5 changed files with 71 additions and 29 deletions

View File

@ -25,7 +25,7 @@ echo ================================
:: 1) Reset the default shell to Explorer :: 1) Reset the default shell to Explorer
echo [1/5] Resetting default shell to Explorer... echo [1/5] Resetting default shell to Explorer...
REG ADD "HKCU\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" ^ REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" ^
/v "Shell" /t REG_SZ /d "C:\Windows\explorer.exe" /f /v "Shell" /t REG_SZ /d "C:\Windows\explorer.exe" /f
if ERRORLEVEL 1 ( if ERRORLEVEL 1 (
echo [ERROR] Failed to reset the default shell. echo [ERROR] Failed to reset the default shell.

View File

@ -1,13 +1,34 @@
@echo off @echo off
SETLOCAL EnableExtensions :: Self-elevating Admin script
:: This script will automatically request admin rights if not running as admin
:: Check for admin rights and self-elevate if needed
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
if '%errorlevel%' NEQ '0' (
echo Requesting administrative privileges...
goto UACPrompt
) else (
goto GotAdmin
)
:UACPrompt
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs"
exit /B
:GotAdmin
if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs"
pushd "%CD%"
CD /D "%~dp0"
echo Setting Playnite as default shell echo Setting Playnite as default shell
echo Set Playnite as the default shell echo Set Playnite as the default shell
SET "KEY_NAME=HKCU\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" SET "KEY_NAME=HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon"
SET "VALUE_NAME=Shell" SET "VALUE_NAME=Shell"
SET "PLAYNITE_FOLDER=%LOCALAPPDATA%\Playnite" SET "PLAYNITE_FOLDER=%LOCALAPPDATA%\Playnite"
SET "PLAYNITE_PATH=%LOCALAPPDATA%\Playnite\Playnite.FullscreenApp.exe SET "PLAYNITE_PATH=%LOCALAPPDATA%\Playnite\Playnite.FullscreenApp.exe"
REG ADD "%KEY_NAME%" /v %VALUE_NAME% /t REG_SZ /d "%PLAYNITE_PATH%" /f REG ADD "%KEY_NAME%" /v %VALUE_NAME% /t REG_SZ /d "%PLAYNITE_PATH%" /f
SET "SCRIPT_NAME=DelayedExplorerStart.bat" SET "SCRIPT_NAME=DelayedExplorerStart.bat"
SET "SCRIPT_PATH=%PLAYNITE_FOLDER%\%SCRIPT_NAME%" SET "SCRIPT_PATH=%PLAYNITE_FOLDER%\%SCRIPT_NAME%"
@ -25,11 +46,11 @@ echo rem Check if user is logged on
echo whoami ^| find /i "%USERNAME%" ^>nul echo whoami ^| find /i "%USERNAME%" ^>nul
echo if ERRORLEVEL 1 exit echo if ERRORLEVEL 1 exit
echo rem Set Shell back to Explorer echo rem Set Shell back to Explorer
echo REG ADD "HKCU\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
echo timeout /t 20 /nobreak ^>nul echo timeout /t 20 /nobreak ^>nul
echo start C:\Windows\explorer.exe echo powershell -WindowStyle Hidden -NoProfile -Command "Start-Process explorer.exe"
echo timeout /t 10 /nobreak ^>nul echo timeout /t 10 /nobreak ^>nul
echo REG ADD "HKCU\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v Shell /t REG_SZ /d "%PLAYNITE_PATH%" /f echo REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v Shell /t REG_SZ /d "%PLAYNITE_PATH%" /f
) > "%SCRIPT_PATH%" ) > "%SCRIPT_PATH%"
@ -112,7 +133,7 @@ bcdedit.exe -set {globalsettings} bootuxdisabled on
echo Disable Logon UI echo Disable Logon UI
reg add "HKCU\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DisableLogonUI /t REG_DWORD /d 1 /f reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DisableLogonUI /t REG_DWORD /d 1 /f
echo Disable Visual Effects echo Disable Visual Effects
reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v VisualEffects /t REG_DWORD /d 3 /f reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v VisualEffects /t REG_DWORD /d 3 /f

View File

@ -1,10 +1,33 @@
@echo off :: Self-elevating Admin script
SETLOCAL EnableExtensions EnableDelayedExpansion :: This script will automatically request admin rights if not running as admin
rem Check for admin rights and self-elevate if needed
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
if '%errorlevel%' NEQ '0' (
echo Requesting administrative privileges...
goto UACPrompt
) else (
goto GotAdmin
)
:UACPrompt
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs"
exit /B
:GotAdmin
if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs"
pushd "%CD%"
CD /D "%~dp0"
SETLOCAL EnableExtensions EnableDelayedExpansion
echo Running with administrative privileges...
echo Setting Steam Big Picture as default shell echo Setting Steam Big Picture as default shell
echo Set Steam Big Picture as the default shell echo Set Steam Big Picture as the default shell
SET "KEY_NAME=HKCU\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" SET "KEY_NAME=HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon"
SET "VALUE_NAME=Shell" SET "VALUE_NAME=Shell"
SET "STEAM_PATH=C:\Program Files (x86)\Steam\Steam.exe -bigpicture -nobootstrapupdate -skipinitialbootstrap -skipverifyfiles" SET "STEAM_PATH=C:\Program Files (x86)\Steam\Steam.exe -bigpicture -nobootstrapupdate -skipinitialbootstrap -skipverifyfiles"
REG ADD "%KEY_NAME%" /v %VALUE_NAME% /t REG_SZ /d "%STEAM_PATH%" /f REG ADD "%KEY_NAME%" /v %VALUE_NAME% /t REG_SZ /d "%STEAM_PATH%" /f
@ -14,22 +37,11 @@ SET "STEAM_FOLDER=C:\Program Files (x86)\Steam"
SET "SCRIPT_NAME=DelayedExplorerStart.bat" SET "SCRIPT_NAME=DelayedExplorerStart.bat"
SET "SCRIPT_PATH=%STEAM_FOLDER%\%SCRIPT_NAME%" SET "SCRIPT_PATH=%STEAM_FOLDER%\%SCRIPT_NAME%"
SET "EXPLORER_PATH=C:\Windows\explorer.exe" SET "EXPLORER_PATH=C:\Windows\explorer.exe"
SET "MANIFEST_PATH=%STEAM_PATH%.manifest" SET "STEAM_EXE=C:\Program Files (x86)\Steam\Steam.exe"
SET "MANIFEST_PATH=%STEAM_EXE%.manifest"
:: Create the manifest file to force admin privileges for Steam echo Copying pre-created manifest file...
echo Creating manifest file for Steam to run as admin... copy "%~dp0steam.manifest" "%MANIFEST_PATH%" >nul 2>&1
(
echo ^<?xml version="1.0" encoding="UTF-8" standalone="yes"?^>
echo ^<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"^>
echo ^<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2"^>
echo ^<security^>
echo ^<requestedPrivileges^>
echo ^<requestedExecutionLevel level="requireAdministrator" uiAccess="false"/^>
echo ^</requestedPrivileges^>
echo ^</security^>
echo ^</trustInfo^>
echo ^</assembly^>
) > "%MANIFEST_PATH%"
echo Creating DelayedExplorerStart.bat script echo Creating DelayedExplorerStart.bat script
@ -42,7 +54,7 @@ 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
echo timeout /t 20 /nobreak ^>nul echo timeout /t 20 /nobreak ^>nul
echo start C:\Windows\explorer.exe echo powershell -WindowStyle Hidden -NoProfile -Command "Start-Process explorer.exe"
echo timeout /t 10 /nobreak ^>nul echo timeout /t 10 /nobreak ^>nul
echo REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v Shell /t REG_SZ /d "%STEAM_PATH%" /f echo REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v Shell /t REG_SZ /d "%STEAM_PATH%" /f
) > "%SCRIPT_PATH%" ) > "%SCRIPT_PATH%"
@ -127,7 +139,7 @@ bcdedit.exe -set {globalsettings} bootuxdisabled on
echo Disable Logon UI echo Disable Logon UI
reg add "HKCU\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DisableLogonUI /t REG_DWORD /d 1 /f reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DisableLogonUI /t REG_DWORD /d 1 /f
echo Disable Visual Effects echo Disable Visual Effects
reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v VisualEffects /t REG_DWORD /d 3 /f reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v VisualEffects /t REG_DWORD /d 3 /f

View File

@ -1 +0,0 @@

10
steam.manifest Normal file
View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="requireAdministrator" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>