I am currently using [GuiRunOnce] in WINNT.SIF to place entries into the RunOnceEx part of the registry, add a new user and then reboot (so that RunOnceEx kicks in).
The problem I am having is that my restart command (using a batch script, as for some reason I cant call sahutdown -r -t 0 from GuiRunOnce) isn't executed. Windows starts, then on the next startup the RunOnceEx entries are ran.
The other issue I have is that I cant get the autologin to persist. It works once, then asks for a username and password every login after that.
Here are the relevant sections:
WINNT.SIF
[GuiRunOnce] %systemdrive%\install\install.cmd %systemdrive%\install\adduser.cmd %systemdrive%\install\restart.cmd
Restart.cmd
shutdown -r -t 0
adduser.cmd
net user Owner /add net localgroup Administrators Owner /add net accounts /maxpwage:unlimited REGEDIT /S %systemdrive%\install\autologon.reg EXIT
autoloon.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon] "DefaultUserName"="Owner" "AltDefaultUserName"="Owner" "AutoAdminLogon"="1"
Thanks in advance,
C02.



Help
Back to top









