Friday, February 15, 2008

Using "sysprep" for Windows Vista Imaging

sysprep is the program that helps to remove computer specific and user specific settings while imaging. It is always wise to run sysperp before pulling off an image of any windows installation. I have tried this thing specifically in windows vista business, so all of the things mentioned below are tested in that platfrom.
Prerequisites for this task will be two machines one the master one (whose image you want to create) and the next one where you will do some stuffs to create answer file.

-->As we are pulling off the image from a vista machine. we are supposed to run sysprep in this machine.
-->sysprep has got different options to run with and all these options are useful in different context.
-->My context is that I want to create an image so that I can clone the same image in large number of computers (lab computers). For this I used the option of creating answer file so that once the image is cloned and the system is rebooted all the computer specific instructions are read by that answer file rather then entering it manually. For that the first task will be to create an answer file.
--> To create this answer file you will need Window Toolkit installed in your system. This toolkit comes with SIM. (At this point I don't know where can I find one....but if anyone needs a copy of the answer file I can send it...I guess you can edit it manually as it is an XML file)
-->I did this with the help of Windows Vista Beta 2 Deployment Step-by-Step Guide. You can find it here: http://technet2.microsoft.com/WindowsVista/en/library/88f80cb7-d44f-47f7-a10d-e23dd53bc3fa1033.mspx?mfr=true
-->Follow the step2 of this guide step by step. If everything goes well you will be with your answer file.
(NOTE: In product key setting you need to enter the product key of that windows)
-->Copy this file in a flash or floppy drive.
-->Take this file to the machine whose image you want to create.

-->Open a command window and Run this command :
c:\windows\system32\sysprep\sysprep /generalize /oobe /shutdown /unattend:scriptfile
(For details check: http://www.minasi.com/newsletters/nws0702a.htm)
-->Sysprep will run, do some processing and then shutdown. Now you are ready to take the image of this machine. Take image with your favorite imaging software ( I use Ghost Cast Server 11.0).
-->Now you are ready to go. You can use this image and clone as many computers as you want and don't have to worry about configuring each computer.

Hope this works. If any questions leave your comments, I will try to reply as soon as possible.

Thanks

No comments: