none
What would be the Best way to run Sysprep manually? RRS feed

  • Question

  • I have an odd situation and dong some testing.  I'm going to be creating a Task Sequence that captures, but does not execute Sysprep.  I'm going to run sysprep manually, let the computer reboot, and capture it on the network boot.  So, my question is, what would be a good sysprep command with switch that I could use? 
    Thursday, May 16, 2013 7:30 PM

Answers

  • Well, depends on your specific needs and if you are providing a specific unattend.xml (and also assuming Windows 7 based on your other posts):

    C:\Windows\System32\sysprep\sysprep.exe /quiet /generalize /oobe /quit

    If you need to specify an unattend.xml:

    C:\Windows\System32\sysprep\sysprep.exe /quiet /generalize /oobe /quit /unattend:<pathtomyunattend>\unattend.xml

    If you want to see specifically how MDT is doing it, look at LTISysprep.wsf around lines 320 - 339.


    David Coulter | http://DCtheGeek.blogspot.com | @DCtheGeek

    • Marked as answer by The Superman Thursday, May 16, 2013 8:13 PM
    Thursday, May 16, 2013 7:37 PM
    Answerer
  • Sure, copy it from \Control\<TS ID>\Unattend.xml to the local machine and specify the local path with the second code snippet I provided above.

    David Coulter | http://DCtheGeek.blogspot.com | @DCtheGeek

    • Marked as answer by The Superman Friday, May 17, 2013 4:00 PM
    Friday, May 17, 2013 3:59 PM
    Answerer

All replies

  • Well, depends on your specific needs and if you are providing a specific unattend.xml (and also assuming Windows 7 based on your other posts):

    C:\Windows\System32\sysprep\sysprep.exe /quiet /generalize /oobe /quit

    If you need to specify an unattend.xml:

    C:\Windows\System32\sysprep\sysprep.exe /quiet /generalize /oobe /quit /unattend:<pathtomyunattend>\unattend.xml

    If you want to see specifically how MDT is doing it, look at LTISysprep.wsf around lines 320 - 339.


    David Coulter | http://DCtheGeek.blogspot.com | @DCtheGeek

    • Marked as answer by The Superman Thursday, May 16, 2013 8:13 PM
    Thursday, May 16, 2013 7:37 PM
    Answerer
  • I'll give it a shot.
    Thursday, May 16, 2013 8:13 PM
  • Can I run Sysprep manually, but specify the answer file that the capture task is using?  
    Friday, May 17, 2013 3:51 PM
  • Sure, copy it from \Control\<TS ID>\Unattend.xml to the local machine and specify the local path with the second code snippet I provided above.

    David Coulter | http://DCtheGeek.blogspot.com | @DCtheGeek

    • Marked as answer by The Superman Friday, May 17, 2013 4:00 PM
    Friday, May 17, 2013 3:59 PM
    Answerer
  • Does /quiet really need to be specified twice? 
    Friday, May 17, 2013 4:03 PM
  • It's not.  One is /quiet and the other is /quit.  : )

    David Coulter | http://DCtheGeek.blogspot.com | @DCtheGeek

    Friday, May 17, 2013 4:12 PM
    Answerer
  • Oh, disregard last one, I see now, it was two different commands.  

    I'm getting an error on my first attempts.  This is my command: sysprep.exe /oobe /generalize /shutdown /unattend:Unattend.xml

    ---------------------------
    System Preparation Tool 3.14
    ---------------------------
    Windows could not parse or process unattend answer file [Unattend.xml]. The specified file does not exist.
    ---------------------------
    OK   
    ---------------------------

    Friday, May 17, 2013 4:22 PM
  • Oh, wow, I really need coffee today.  

    I did not specify that path of the xml file, I see what I did.  

    Friday, May 17, 2013 4:24 PM