+ Post New Thread
Results 1 to 5 of 5
Windows 7 Thread, How do I make PC restart twice after re-imaging from sysprep? in Technical; I've being looking through the Windows System Image Manager but couldn't find anything. Machine re-image from ghost server, pause for ...
  1. #1

    Join Date
    May 2011
    Location
    Jus North of London, close but not too close
    Posts
    671
    Thank Post
    155
    Thanked 51 Times in 49 Posts
    Rep Power
    33

    How do I make PC restart twice after re-imaging from sysprep?

    I've being looking through the Windows System Image Manager but couldn't find anything.

    Machine re-image from ghost server, pause for the machine name to be entered, a powershell script adds them to the domain and then I want to restart them twice.

    I guess it needs to be a powershell script?

    Implemented Windows 7 site wide a year ago but jus trying to fine tune everything.

  2. #2

    ZeroHour's Avatar
    Join Date
    Dec 2005
    Location
    Edinburgh, Scotland
    Posts
    5,575
    Thank Post
    869
    Thanked 1,293 Times in 786 Posts
    Blog Entries
    1
    Rep Power
    436
    Just a quick question, are you rebooting twice to ensure GP applies?
    If so do a batch file with gpupdate /force /restart

  3. #3

    X-13's Avatar
    Join Date
    Jan 2011
    Location
    /dev/null
    Posts
    8,004
    Thank Post
    508
    Thanked 1,591 Times in 1,122 Posts
    Blog Entries
    19
    Rep Power
    700
    Quote Originally Posted by ZeroHour View Post
    Just a quick question, are you rebooting twice to ensure GP applies?
    If so do a batch file with gpupdate /force /restart
    ^ This.

    If you're determined to have it restart twice, why not make a file on the HDD to count how many times it has restarted?

    Then add "IF [file]=2 [norestart] ELSE [file+1 > file] [restart]" [NOTE: actual working code may vary]
    Last edited by X-13; 25th September 2012 at 10:24 AM. Reason: My "n" ran away to join the circus. I got it back in the end.

  4. #4

    Join Date
    May 2011
    Location
    Jus North of London, close but not too close
    Posts
    671
    Thank Post
    155
    Thanked 51 Times in 49 Posts
    Rep Power
    33
    Quote Originally Posted by ZeroHour View Post
    Just a quick question, are you rebooting twice to ensure GP applies?
    If so do a batch file with gpupdate /force /restart
    Partly, but with laptops recently I found the need to restart twice, at first startup it comes up with correct domain login box, 2nd restart and goes back to the normal non-domain login, after 3rd restart ity goes back to the domain login box again.

    But yes, it would be good to get a good stab at software deployment GPO's and updates before putting the laptop out for general use.

    I suppose I could use that script "gpupdate /force /restart" as a run once in the unattend file?

    Thanks

  5. #5

    Oaktech's Avatar
    Join Date
    Jul 2011
    Location
    Bournemouth
    Posts
    2,463
    Thank Post
    678
    Thanked 451 Times in 363 Posts
    Rep Power
    229
    Good thoughts, I might need to do this too as we have some flaky graphics drivers that demand a double restart after imaging, the first restart seems to detect monitor and set resolution, but at 256 colour, the second restart sorts that.

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 15
    Last Post: 2nd November 2009, 05:21 PM
  2. IIS problem - How do I make address friendly?
    By reggiep in forum Windows
    Replies: 8
    Last Post: 16th January 2009, 04:53 PM
  3. Replies: 1
    Last Post: 14th August 2008, 06:33 PM
  4. Replies: 3
    Last Post: 5th July 2008, 11:33 AM
  5. How do I make an USB Drive Bootable.?
    By Grommit in forum Windows
    Replies: 7
    Last Post: 17th December 2007, 07:56 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
  •