Previous Topic: Run the Sysprep Tool on Windows 2003 R2

Next Topic: Convert the VM to a Template (XenServer)


Run the Sysprep Tool on Windows 2008 R2

All files to perform the SysPrep process are installed as part of the regular Windows installation process. After you configure the Windows installation, perform the following steps:

  1. Generate a valid XML response file using the Windows Automated Installation Kit (WAIK) for Windows Server 2008 R2. WAIK is available from the Microsoft Web site.

    Note: The way provisioning requires a dummy unattended response file, or it cannot shutdown. The content of the response file is irrelevant, since the provisioning process replaces it, but the file must follow the SysPrep-specific XML schema.

  2. Name the generated XML file “sysprep.xml” and place it into the Sysprep directory:

    %SystemRoot%\system32\sysprep

  3. Run the following command:
    sysprep /generalize /oobe /shutdown /unattend:sysprep.xml