/////////////////////////////////////////
//    Switch to Administrator Init     //
/////////////////////////////////////////

TEAM LOGS %WinDir%\System32\PecmdAdmin.log

LOGO %WinDir%\web\wallpaper\Windows\img0.jpg

CALL ADMIN
//CALL SWITCHTOADMINQUESTION
EXIT

////////////////////////////////////////////////////////////////////////////////////////////////
_SUB SWITCHTOADMINQUESTION

// Enable Mouse Cursor RegWrite,HKLM,0x4,Tmp_Software\Microsoft\Windows\CurrentVersion\Policies\System,EnableCursorSuppression,0 or Exec =Winpeshl.exe
//EXEC =%WinDir%\System32\winpeshl.exe

MESS Switch to Administrator? @Switch to Administrator #YN *3000 $N
FIND $%YESNO%=YES,CALL ADMIN
FIND $%YESNO%=NO,LOAD %WinDir%\System32\Pecmd.ini

_END
////////////////////////////////////////////////////////////////////////////////////////////////
_SUB ADMIN

TEXT Switch to Administrator, please wait... # 0xFFFFFF L59 T39 $20*

IFEX X:\Users\Default\NTUSER.DAT,FILE X:\Users\Default\NTUSER.DAT
FILE %Windir%\System32\config\Default=>X:\Users\Default\NTUSER.DAT

REGI #HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\AutoAdminLogon=1
REGI HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DefaultUserName=Administrator
REGI HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DefaultPassword=""
REGI $HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Userinit=userinit.exe,Pecmd.exe MAIN -user %Windir%\System32\pecmd.ini
REGI HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList\Guest=#0
REGI HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\EnableSIHostIntegration=#0

// REGI HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-18\ProfileImagePath=X:\Users\Administrator

// Force the administrator name whatever language
EXEC != secedit.exe /configure /db %WinDir%\security\database\unattend.sdb /cfg %WinDir%\security\templates\unattend.inf /log %WinDir%\security\logs\unattend.log

CALL $Netapi32.dll,NetJoinDomain,,WORKGROUP,,,,1

EXEC !=SC start seclogon
IFEX %WinDir%\System32\Admin18850+.bat, EXEC =Admin18850+.bat
EXEC !%WinDir%\System32\tsdiscon.exe

_END
////////////////////////////////////////////////////////////////////////////////////////////////