• Forum
  • About
  • Archives
  • Categories
  • Posts Tagged ‘sysprep’

    Working Windows 7 Sysprep


    2010 - 04.01

    I don’t know about you but I’m finding more and more that Microsoft only want the good paying folks of the world to have access to their maniacal documentation and phone support, while writing some of the worst coding known to man.

    I’m not referring to Windows for a change, this time I’m aiming a swipe at Windows 7 Sysprep and the Hell it’s put me through to get it to work correctly. I have total respect for this blog: http://blog.brianleejackson.com

    Brian wrote a complete how to for the common man with input from other frustrated IT people. When I stumbled upon this blog I was all ready knee deep in MS documentation regarding Windows PE3 and the Sysprep process. Unlike the MS wording, his is straight cut and doesn’t give you all the crap you don’t need. I worked through his Sysprep guide (v2) and found that it did what it said on the tin. It’s been a great starting point…

    Now, I needed to do some additional work to the image where Brian hasn’t. At the end of his tutorial you have a working Windows 7 image that will roll to most hardware, this is great stuff; but I need to join a domain and depending on the location of the PC I need it to go in to different OUs. Inside of the sysprep.xml file I have added all the information required to make it join, but will it? Will it Hell. You gotta love MS, the WAIK DVD you download and install is painful. I don’t mind it too much as it’s all command line based which suits me down to the ground, but when features they write it just plain don’t work you tend to turn grey and start pulling chunks of your hair out.

    So, I’ve attached 3 files to this post, my sysprep.xml file with a few bits I’ve removed such as activation keycode and name of my company, you’ll need to add those yourself; my joindomain.vbs script which will join the PC to the domain as the final task of the build process and my SetupComplete.cmd file. Please edit the sysprep.xml in WAIK and set your settings as required.

    WAIK Files as Required

    Join the forum discussion on this post

    Working Sysprep 3.0 for Windows 7


    2010 - 01.15

    I’ve seen a lot of people having issues with Windows 7 sysprep at the moment and Microsoft’s new and ridiculously complicated rollout system. Here’s a quick breakdown of how to make a Windows 7 image:

    Create a Windows PE disk with ImageX on it
    Create an answer file called unattend.xml using the Windows Installation & Administration Kit (WAIK)
    Configure Windows how you want it
    Drop the unattend.xml in to c:\windows\system32\sysprep
    Drop to a command prompt in that directory and do:
    sysprep /oobe /generalize /shutdown /unattend:unattend.xml

    Once she’s down, boot on the Windows PE disk and take an image.

    Edit my unattend.xml file which is attached using the WAIK and change things like Key, usernames, etc. This version tries to join to a domain, you may want to delete that section.

    Good luck!