none
sysprep failed at [Microsoft-Windows-Shell-Setup].

    Question

  • Hi All,

    I am having some problems with Windows 7 sysprep. It encountered a error during sysprep when "Setup is applying system settings"
    Error message - Windows could not parse or process the unattend answer file for pass [specialize]. The settings specified in the answer file cannot be applied. The error was detected while processing settings for component [Microsoft-Windows-Shell-Setup].

    I use sysprep /generalize /oobe /quit /unattend:sysprep.xml command and following is my sysprep.xml file:

    <?xml version="1.0" encoding="utf-8" ?>
    - <unattend xmlns="urn:schemas-microsoft-com:unattend">
    - <settings pass="specialize">
    - <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    - <Display>
      <ColorDepth>32</ColorDepth>
      <DPI>100</DPI>
      <HorizontalResolution>1024</HorizontalResolution>
      <RefreshRate>75</RefreshRate>
      <VerticalResolution>768</VerticalResolution>
      </Display>
      <BluetoothTaskbarIconEnabled>false</BluetoothTaskbarIconEnabled>
      <ComputerName>computername</ComputerName>
      <CopyProfile>true</CopyProfile>
      <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
      <DoNotCleanTaskBar>false</DoNotCleanTaskBar>
      <ProductKey>12345-67890-12345-67890-12345</ProductKey>
      <RegisteredOrganization>My Company</RegisteredOrganization>
      <RegisteredOwner>My Company</RegisteredOwner>
      <ShowWindowsLive>false</ShowWindowsLive>
      <TimeZone>Pacific Standard Time</TimeZone>
      </component>
    - <component name="Microsoft-Windows-Deployment" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    - <RunAsynchronous>
    - <RunAsynchronousCommand wcm:action="add">
      <Order>1</Order>
      <Path>cmd /c REG ADD "HKLM\Software\Microsoft\Windows NT\CurrentVersion\UnattendSettings\PnPUnattend\DriverPaths\1" /v Path /t REG_SZ /d C:\Drivers /f</Path>
      <Description>PnP1</Description>
      </RunAsynchronousCommand>
      </RunAsynchronous>
    - <RunSynchronous>
    - <RunSynchronousCommand wcm:action="add">
      <Order>2</Order>
      <Path>cmd /c C:\Windows\System32\pnpUnattend.exe AuditSystem /L</Path>
      <Description>PnP2</Description>
      </RunSynchronousCommand>
      </RunSynchronous>
      </component>
    - <component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    - <Identification>
    - <Credentials>
      <Domain>my.domain.com</Domain>
      <Password>password</Password>
      <Username>admin</Username>
      </Credentials>
      <JoinDomain>my.domain.com</JoinDomain>
      </Identification>
      </component>
    - <component name="Microsoft-Windows-Security-SPP-UX" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <SkipAutoActivation>true</SkipAutoActivation>
      </component>
      </settings>
    - <settings pass="oobeSystem">
    - <component name="Microsoft-Windows-International-Core" processorArchitecture="x86" 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>
      <UserLocale>en-US</UserLocale>
      </component>
    - <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    - <UserAccounts>
    - <LocalAccounts>
    - <LocalAccount wcm:action="add">
    - <Password>
      <Value>password</Value>
      <PlainText>false</PlainText>
      </Password>
      <Description>local</Description>
      <DisplayName>admin</DisplayName>
      <Group>administrators</Group>
      <Name>admin</Name>
      </LocalAccount>
      </LocalAccounts>
      </UserAccounts>
      <BluetoothTaskbarIconEnabled>false</BluetoothTaskbarIconEnabled>
      <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
      <DoNotCleanTaskBar>false</DoNotCleanTaskBar>
      <RegisteredOrganization>My Company</RegisteredOrganization>
      <RegisteredOwner>My Company</RegisteredOwner>
      <ShowWindowsLive>false</ShowWindowsLive>
      <TimeZone>Pacific Standard Time</TimeZone>
      </component>
      </settings>
      <cpi:offlineImage cpi:source="catalog:c:/w7_x86/install_windows 7 ultimate.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
      </unattend>
    Tuesday, August 04, 2009 6:57 PM

All replies

  • Hi.
    After you get the error mentioned, reboot the machine using a WinPE disk and hit F8 to get into DOS mode. Navigate to c:\windows\panther\unattendgc. There should be 2 logs files in there. Setupact.log and setuperr.log
    One of the log files will tell you which components from your XML file are failing to install. Its most likely a product key issue or a component that you have select in your XML file not being supported in the OS.
    Post your logs here if you run into trouble,

    Glen
    Wednesday, August 05, 2009 1:15 AM
  • I had this problem too but I fixed it by downloading latest driver for sound and network and some other component i can't rember which. hope this helps
    • Proposed as answer by JS2010 Wednesday, July 28, 2010 8:54 PM
    Friday, May 21, 2010 6:14 AM
  • To resolve this problem you may check if you dont have bad keys in HKLM\Software\Microsoft\Windows NT\CurrentVersion\ProfileList

    Maybe you have some profiles listed in there that are not existing anymore. If you do,  sysprep crash when copyprofile=true, so you have to delete those bad keys.

    • Proposed as answer by DMobley232 Friday, December 10, 2010 9:57 PM
    Friday, June 11, 2010 6:01 PM
  • Fix confirmed.

    Check HKLM\Software\Microsoft\Windows NT\CurrentVersion\ProfileList

     

    • Proposed as answer by RonInAK Thursday, July 28, 2011 10:19 PM
    Monday, July 19, 2010 5:13 PM
  • To resolve this problem you may check if you dont have bad keys in HKLM\Software\Microsoft\Windows NT\CurrentVersion\ProfileList

    Maybe you have some profiles listed in there that are not existing anymore. If you do,  sysprep crash when copyprofile=true, so you have to delete those bad keys.

    Hello.  I had this same error message and remember that I manually deleted a profile under computer management and also the folder in the C:\Users\ directory.  Now I would like to go in to navigate to this registry entry and delete it there as well but after sysprepping, the computer will not allow me in to windows at all.  It simply cycles and shows me that error message every time I try to restart  it.  It never gets past the "Setup is preparing your computer for first use' screen.  Any advice on bypassing this message to access regedit?  Thank you.
    Wednesday, July 28, 2010 3:50 PM
  • I don't think you can recover from that.

    You can try booting to winpe and loading the SOFTWARE hive in regedit, but I'm pretty sure I tried that.

     

    Wednesday, July 28, 2010 4:32 PM
  • Fix confirmed.

    Check HKLM\Software\Microsoft\Windows NT\CurrentVersion\ProfileList

     

    I've been looking for a solution to my [specialize] sysprep error for almost a week and this was the answer.  A thousand 'Thank yous', sir, for getting the ball rolling on my Windows 7 rollout, once again.

     

    Thursday, July 28, 2011 10:22 PM
  • i've been having what seems to be a similar issue and i've deleted all the user profiles except the administrator one but still get the error. what gives?
    Thursday, November 17, 2011 1:55 PM
  • Does the administrator folder exist?  Check the sysprep log files mentioned above.  I wouldn't use the CopyProfile feature more than once.  I script all my Default profile changes after that.

     

     

    Thursday, November 17, 2011 4:33 PM
  • Fix confirmed.

    Check HKLM\Software\Microsoft\Windows NT\CurrentVersion\ProfileList

     


    You sir, saved me a lot of frustration! Thanks in advance!
    Thursday, January 12, 2012 6:33 PM
  • I have ran into trouble on a few machines in our image deployment. After going through the logs the only thing it points me toward is that copy profile isn't working. 

    I went into regedit on our image and there doesn't appear to be any extraneous profiles there. Am I missing something?

    Tuesday, May 10, 2016 12:52 PM