From f371b307f5b162a6e14ffc840de8d9e661705aa1 Mon Sep 17 00:00:00 2001 From: jazir5 <31750063+jazir555@users.noreply.github.com> Date: Tue, 30 Jan 2024 21:43:42 -0800 Subject: [PATCH] Update Enable GamesDows v2 --- Enable GamesDows v2 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Enable GamesDows v2 b/Enable GamesDows v2 index cf829cc..617b036 100644 --- a/Enable GamesDows v2 +++ b/Enable GamesDows v2 @@ -30,7 +30,15 @@ echo Set WshShell = CreateObject("WScript.Shell") > "%VBS_PATH1%" echo WshShell.Run chr(34)^&"%SCRIPT_PATH1%"^&chr(34), 0, True >> "%VBS_PATH1%" echo Set WshShell = Nothing >> "%VBS_PATH1%" -echo Creating DelayedExplorerStart.bat script +echo Creating StartSteamAsAdmin.bat script +( +echo @echo off +echo Check if user is logged on +echo query user ^| find /i "%USERNAME%" ^>nul +echo if ERRORLEVEL 1 exit +echo Set Steam As Admin +echo REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v Shell /t REG_SZ /d "%STEAM_PATH%" /f +) > "%SCRIPT_PATH1%" echo Create the DelayedExplorerStart.bat script in the Steam folder (