In order to Sysprep a Windows 7 Machine, please follow the instructions as mentioned below:

  • Firstly, we will begin by walking through the building structure of the XML file, which is also known as the answer file. After this we shall walk through the actual Windows 7 imaging process. The DVD of the Windows 7 has to be inserted or an ISO file  of Windows 7 will enable you to extract the relevant files that are necessary for Sysprep.
  • Secondly, you will have to launch the Windows System Image Manager. You can locate the icon of the Windows System Image Manager in the start up menu. Here under the “Window Image”, header you will have to right click and select new image. Under this section, select the CLG file in the Windows 7 installation. All the mentioned files are located in the sources folder. Now you can select either of the two files that is CLD files or the install.wim.
  • Thirdly, in this section we will now require to create a new answer file. You will be directed toopen file menu and then you will have to select “Create New Answer File”. Just after creating one such file you will have to go to the file menu and select the option “Save Answer File”. This will actually give you the name of the XML file a name and save location. Here you will see that we have two categories of program. The two folders are Component and Packages. Under the component section one will get to see more 7 options.

Now the most important thing is that you will have to follow the sequential order to get the XML file. The next part is bit confusing because no one will have to add components from the “Windows Image” section. This is found on the bottom-left hand side to the answer file you have created. One can now select “add to # pass” to add component.The answer files have to be now saved syprep.xml.

All this while we were talking of creating XML files now we will deal with image process/ running sys-prep. One will just have to install windows 7 from the CD and then when they ask you to create a user name you will just have to reboot the machine and keep the machine in audit mode. Here you will log in as administrator. Now you can start installing any software and driver and make your own profile. If rebooting is necessary then the computer will boot back into the administrator account. Well one will be stuck in this sys-prep until you come out of the audit mode.