Wednesday, February 1, 2012

Windows 7 sysprep (Solve the driver issue)

Running the following unattended file for the sysprep:

***********************************************************************************

<?xml version="1.0" encoding="utf-8" ?>

- <unattend xmlns="urn:schemas-microsoft-com:unattend">
- <settings pass="oobeSystem">
- <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <InputLocale>en-US</InputLocale>
  <SystemLocale>en-US</SystemLocale>
  <UILanguage>en-US</UILanguage>
  <UILanguageFallback>en-US</UILanguageFallback>
  <UserLocale>en-US</UserLocale>
  </component>
- <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <OOBE>
  <HideEULAPage>true</HideEULAPage>
  <NetworkLocation>Work</NetworkLocation>
  <ProtectYourPC>1</ProtectYourPC>
  </OOBE>
- <UserAccounts>
- <LocalAccounts>
- <LocalAccount wcm:action="add">
- <Password>
  <Value>cABhAHMAcwB3AG8AcgBkAFAAYQBzAHMAdwBvAHIAZAA=</Value>
  <PlainText>false</PlainText>
  </Password>
  <Description>First Admin User</Description>
  <DisplayName>User</DisplayName>
  <Group>administrators</Group>
  <Name>User</Name>
  </LocalAccount>
  </LocalAccounts>
  </UserAccounts>
  <TimeZone>Eastern Standard Time</TimeZone>
  </component>
  </settings>
- <settings pass="specialize">
- <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <CopyProfile>true</CopyProfile>
  </component>
  </settings>
- <settings pass="generalize">
- <component language="neutral" versionScope="nonSxS" publicKeyToken="31bf3856ad364e35" processorArchitecture="amd64" name="Microsoft-Windows-Security-SPP" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
  <SkipRearm>0</SkipRearm>
  </component>
- <component language="neutral" versionScope="nonSxS" publicKeyToken="31bf3856ad364e35" processorArchitecture="amd64" name="Microsoft-Windows-PnpSysprep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
  <PersistAllDeviceInstalls>true</PersistAllDeviceInstalls>
  </component>
  </settings>
  <cpi:offlineImage cpi:source="wim:h:/sources/install.wim#Windows 7 ENTERPRISE" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
  </unattend>

*************************************************************************************

Please copy the above content and save it as unattend.xml, then copy this unattend.xml to C:\answerfile and run the following command for sysprep:
%systemroot%\system32\sysprep\sysprep.exe /oobe /shutdown /generalize /unattend:c:\answerfile\unattend.xml

Please full backup the Windows (Windows backup or DELL backup and recovery) before running the sysprep.

(If the sysprep is running failure, you will not able to login the Windows again (e.g. reboot in looping))

Just a friendly reminder:
1. Full backup the machine before run sysprep
2. Do not use the default local administrator account for "profile copy"

Print Friendly and PDF
Share/Bookmark

No comments:

Post a Comment