Home » Preparing the VHD file using Windows Server 2008 Hyper-V

Preparing the VHD file using Windows Server 2008 Hyper-V

Preparing the VHD file using Windows Server 2008 Hyper-V

This method is obtaining the existing Windows 7 or Windows Server 7 DVD and make sure it is sysprepped to clear all the hardware information. So why sysprep ?

Benefits of Sysprep

Sysprep provides the following benefits:

  • Removes system-specific data from Windows. Sysprep can remove all system-specific information from an installed Windows image, including the computer security identifier (SID). The Windows installation can then be captured and installed throughout an organization.
  • Configures Windows to boot to Audit mode. Audit mode enables you to install third-party applications and device drivers, as well as to test the functionality of the computer.
  • Configures Windows to boot to Windows Welcome. Configures a Windows installation to boot to Windows Welcome the next time the computer starts. In general, you configure a system to boot to Windows Welcome immediately before delivering the computer to a customer.
  • Resets Windows Product Activation. Sysprep can reset Windows Product Activation up to three times.

For more information about sysprep visit How sysprep works ? and What is Sysprep ? that will give you clear idea about sysprepping a system.

If you have Windows Server 2008 running Hyper-V, launch the virtual machine running Windows 7 or Windows Server 7 aka Windows Server 2008 R2 and the run the following command
c:\windows\system32\sysprep>sysprep /generalize /shutdown

If you have Windows Server 2008 running Hyper-V, launch the virtual machine running Windows 7 or Windows Server 7 aka Windows Server 2008 R2 and the run the following command

c:\windows\system32\sysprep>sysprep /generalize /shutdown

sysprep

After running the above command in the virtual machine, this will launch the System Preparation Tool 3.14. Select the checkbox for ‘Generalize’ and click on OK.

Once the sysprep is completed the virtual machine will be shutdown and ready for booting. You can copy that VHD now.

Note: Sysprep does not work on upgrade. You need to have Clean Installed Windows 7