+ Post New Thread
Results 1 to 3 of 3
O/S Deployment Thread, Putting a Second Reboot intruction into SysPrep in Technical; Afternoon All Right, I have my SysPrep image set to do it's thing, then it's set to log on as ...
  1. #1
    soveryapt's Avatar
    Join Date
    Jan 2009
    Location
    Lancashire
    Posts
    2,402
    Thank Post
    648
    Thanked 277 Times in 244 Posts
    Rep Power
    78

    Putting a Second Reboot intruction into SysPrep

    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

  2. #2
    Duke5A's Avatar
    Join Date
    Jul 2010
    Posts
    795
    Thank Post
    81
    Thanked 130 Times in 113 Posts
    Blog Entries
    8
    Rep Power
    31
    You could try adding this to your run once command in the answer file:

    Code:
    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.

  3. Thanks to Duke5A from:

    soveryapt (5th June 2013)

  4. #3
    soveryapt's Avatar
    Join Date
    Jan 2009
    Location
    Lancashire
    Posts
    2,402
    Thank Post
    648
    Thanked 277 Times in 244 Posts
    Rep Power
    78
    Quote Originally Posted by Duke5A View Post
    You could try adding this to your run once command in the answer file:

    Code:
    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.

SHARE:
+ Post New Thread

Similar Threads

  1. [Website] Put things into scale...
    By PICNIC in forum Jokes/Interweb Things
    Replies: 3
    Last Post: 19th March 2012, 11:58 AM
  2. Replies: 6
    Last Post: 2nd March 2012, 08:25 AM
  3. Putting a machine into audit mode
    By JJonas in forum Windows 7
    Replies: 1
    Last Post: 22nd March 2010, 12:25 PM
  4. Pulling serial no from BIOS into Sysprep
    By mark in forum Windows
    Replies: 7
    Last Post: 10th March 2009, 07:44 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •