The following methodology was provided my Martien Truijen, a frequent visitor to this site:
Using standard commands, you can configure an automatic Administrator logon after joining a domain during unattended setup.
Create autolog.cmd in the $oem$ folder:
@echo off
for /f "tokens=1,3 delims= " %%i in (%systemroot%\system32\$winnt$.inf) do if "%%i"=="ComputerName" set domain=%%j
echo "DefaultDomainName"=%domain% >> autolog.reg
regedit /s autolog.reg
Create autolog.reg in the $oem$ folder:
REGEDIT4
\[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\]
"DefaultUserName"="Administrator"
"AutoAdminLogon"="1"
"DefaultPassword"=""
Add the autolog.cmd to the cmdlines.txt:
".\autolog.cmd"
0 comments
Hide comments