cartman02au Posted February 8, 2005 Share Posted February 8, 2005 Hi all,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.cmdRestart.cmdshutdown -r -t 0adduser.cmdnet user Owner /addnet localgroup Administrators Owner /addnet accounts /maxpwage:unlimitedREGEDIT /S %systemdrive%\install\autologon.regEXITautoloon.regWindows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]"DefaultUserName"="Owner""AltDefaultUserName"="Owner""AutoAdminLogon"="1"Thanks in advance,C02. Link to comment Share on other sites More sharing options...
valter Posted February 8, 2005 Share Posted February 8, 2005 hi,as per restart try to modify this to fit your needsshutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute..."as per autologon, try to set password on the user while adding the user from adduser.cmd. Don't forget to add password to your autologon.regWindows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]"DefaultUserName"="John""DefaultPassword"="asdf1234""AutoAdminLogon"="1" Link to comment Share on other sites More sharing options...
cartman02au Posted February 8, 2005 Author Share Posted February 8, 2005 Had already tried these with no luck The shutdown command works when I use it in RunOnceEx, but doesnt work from GuiRunOnce Link to comment Share on other sites More sharing options...
valter Posted February 8, 2005 Share Posted February 8, 2005 not reallu sure you can use shutdown command from winnt.sif file ... Link to comment Share on other sites More sharing options...
cartman02au Posted February 8, 2005 Author Share Posted February 8, 2005 Where is the best place to add the registry entries? Link to comment Share on other sites More sharing options...
valter Posted February 9, 2005 Share Posted February 9, 2005 make a file called registry.reg and call it from runonce.cmd Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now