soveryapt Posted June 5, 2013 Posted June 5, 2013 Afternoon All Right, I have my SysPrep image set to do it's thing, then it's set to log on as the administrator once, clear up the various files, activate windows / office etc, then it runs a reboot. Now, 9/10 this catches all the other installs that didn't happen during the initial setup, however, to be sure, I'm wanting to add a second reboot in there (i.e. computer does a second Admin logon, then reboots). I'm just wondering the best way of going about doing this as I use the first run commands for the first reboot. Thanks Andy
Duke5A Posted June 5, 2013 Posted June 5, 2013 You could try adding this to your run once command in the answer file: reg add HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce /v Reboot /t REG_SZ /d "shutdown -t 0 -r" It'll add that value to RunOnce for the user you have set for automatic logon. As long as the same account is used for the second logon that event will fire and reboot the machine. 1
soveryapt Posted June 5, 2013 Author Posted June 5, 2013 You could try adding this to your run once command in the answer file: reg add HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce /v Reboot /t REG_SZ /d "shutdown -t 0 -r" It'll add that value to RunOnce for the user you have set for automatic logon. As long as the same account is used for the second logon that event will fire and reboot the machine. Thanks for that. I'll give it a whirl.
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