To complete this process, you will need access to the following:
- The Windows 7 installation media
- The Symantec Ghost Console
- The Windows System Image Manager
- Note: The Windows System Image Manager is part of Microsoft's WAIK utility. You can download this utility from the Microsoft website.
First, create your answer file using the Symantec Ghost Console:
- Open the Symantec Ghost Console.
- Click File > New > Image Create Task.
- Click the Sysprep tab.
- Check the box next to Run Microsoft Sysprep on this machine before creating the image.
- Click Browse.
- Click Sysprep Configurations.
- Click New... > New Item.
- In the Name field, type Windows 7 Sysprep (or any other name of your choice).
- Click Browse.
- Select the version of Windows 7 that is applicable to you (x86 or x64).
- Click OK.
- Click Create.
- On the Create Sysprep answer file for Windows 7 window, enter the information you are prompted for.
- If you choose to enter the product key, it must be entered with the dashes included.
- In the Computer Name field, do not enter a combination of a character string and wildcard. Enter a wildcard (*) alone or leave the field blank to generate a generic computer name.
- When all fields are complete, click OK.
- Click OK.
- Close all open windows in the Symantec Ghost Console and then close the Symantec Ghost Console itself.
- Locate the Microsoft Sysprep answer file you just created.
- If the Symantec Ghost Console runs on Windows Vista, Windows 7, Windows Server 2008, or Windows Server 2008 R2, you will find the unattend.xml file here: C:\ProgramData\Symantec\Ghost\Sysprep\Config (locate the file that has the date/time stamp that matches the time you created the file in the Symantec Ghost Console)
- If the Symantec Ghost Console runs on Windows XP or Windows Server 2003, you'll find the file here: C:\Documents and Settings\All Users\Application Data\Symantec\Ghost\Sysprep\Config (locate the file that has the date/time stamp that matches the time you created the file in the Ghost Console)
- Copy this unattend.xml file to a location that is convenient to access.
Second, modify the answer file using the Windows System Image Manager:
- Open the Windows System Image Manager Software.
- Click File > Open Answer File...
- Browse to the unattend.xml answer file that you created with the steps above and open it.
- If you are prompted to browse to a Windows Image file, browse to the *.clg file located on the Windows 7 installation media. The file is located in the Sources folder of the Windows installation media.
- Under the Windows Image section, expand Components > x86_Microsoft-Windows-Shell-Setup.
- Right-click on AutoLogon. From the resulting menu, left-click on Add Setting to Pass 7 oobeSystem.
- Further down the list, right-click on User Accounts. From the resulting menu, left-click on Add Setting to Pass 7 oobeSystem.
- In the Answer File section, expand 7oobeSystem.
- Expand x86_Microsoft-Windows-Shell-Setup_neutral.
- Left-click on AutoLogon.
- In the AutoLogon Properties pane, click the Drop-down arrow for the Enabled field and set this to true.
- In the LogonCount field, enter the number of times that you should automatically log into the Administrator account. Note: The value for this field has to be 1 or greater.
- In the Username field, enter Administrator.
- In the Answer File pane, expand 7oobeSystem > x86_Microsoft-Windows-Shell-Setup_neutral > UserAccounts > Administrator Password.
- In the Value field, enter the local administrator password.
- Click File > Save Answer File As...
- Browse to a location to store the new answer file and click Save.
Third, import the modified answer file into the Symantec Ghost Console for use with Image Create Tasks:
- Open the Symantec Ghost Console.
- Expand Configuration Resources.
- Click Sysprep Configurations.
- Right-click in the right-hand pane and selection the option for New Sysprep Configuration.
- Provide a name for this new configuration. For example, Windows 7 Professional x86.
- Click Browse.
- Select the appropriate version of Windows 7 Sysprep and click OK.
- Click Import.
- Browse to the modified answer file, select it, and click Open.
- Click OK.
You can now include this new Microsoft Sysprep configuration with Image Create Tasks in the Symantec Ghost Console.
For troubleshooting unattend files see this article: 238346