Jump to content

Recommended Posts

Posted

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 :)

Posted

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 1
Posted
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. :cool:

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...