Windows 7 sysprep answer file

Ik probeer middels het commando sysprep /shutdown /generalize / oobe /unattend:unattend.xml een windows 7 64 bits machine te syspreppen. Dit functioneerd prima met de volgende answer file:

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
  <settings pass="windowsPE">
    <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
      <SetupUILanguage>
        <UILanguage>nl-US</UILanguage>
      </SetupUILanguage>
      <InputLocale>0409:00000413</InputLocale>
      <UserLocale>nl-US</UserLocale>
      <UILanguage>nl-US</UILanguage>
      <SystemLocale>nl-US</SystemLocale>
    </component>
    <component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
      <UserData>
        <AcceptEula>true</AcceptEula>
        <FullName>************</FullName>
        <Organization>************</Organization>
        </UserData>
    </component>
  </settings>
  <settings pass="oobeSystem">
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
      <OOBE>
        <HideEULAPage>true</HideEULAPage>
        <NetworkLocation>Work</NetworkLocation>
        <ProtectYourPC>1</ProtectYourPC>
        <SkipMachineOOBE>true</SkipMachineOOBE>
        <SkipUserOOBE>true</SkipUserOOBE>
      </OOBE>
      <TimeZone>W. Europe Standard Time</TimeZone>
      <UserAccounts>
        <AdministratorPassword>
          <Value>************</Value>
          <PlainText>true</PlainText>
        </AdministratorPassword>
        <LocalAccounts>
          <LocalAccount>
            <Password>
              <Value></Value>
              <PlainText>true</PlainText>
            </Password>
            <Description>************</Description>
            <DisplayName>************</DisplayName>
            <Group>Users;</Group>
            <Name>>************</</Name>
          </LocalAccount>
        </LocalAccounts>
      </UserAccounts>
     </component>
    <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
      <InputLocale>nl-US</InputLocale>
      <UserLocale>nl-US</UserLocale>
      <UILanguage>nl-US</UILanguage>
      <SystemLocale>nl-US</SystemLocale>
    </component>
  </settings>
  <settings pass="specialize">
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
      <ComputerName>*</ComputerName>
      <CopyProfile>false</CopyProfile>
      <RegisteredOrganization>************</RegisteredOrganization>
      <RegisteredOwner>************</RegisteredOwner>
      <Display>
        <ColorDepth>32</ColorDepth>
        <HorizontalResolution>1024</HorizontalResolution>
        <RefreshRate>60</RefreshRate>
        <VerticalResolution>768</VerticalResolution>
      </Display>
    </component>
  </settings>
</unattend>


Nu heb ik de answer file aangepast zoals hieronder (dikgedrukt) zodat er tijdens de /generalize geen drivers worden weggegooid. Het image is namelijk voor hetzelfde type hardware.

Na deze aanpassing krijg ik de volgende foutmelding waardoor de sysprep niet voltooid (helaas in het nederlands):

"Kan het antwoordbestand voor installatie zonder toezicht niet parseren of verwerken voor fase [generalize]. Een onderdeel of instelling in het antwoordbestand bestaat niet".


<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
  <settings pass="windowsPE">
    <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
      <SetupUILanguage>
        <UILanguage>nl-US</UILanguage>
      </SetupUILanguage>
      <InputLocale>0409:00000413</InputLocale>
      <UserLocale>nl-US</UserLocale>
      <UILanguage>nl-US</UILanguage>
      <SystemLocale>nl-US</SystemLocale>
    </component>
    <component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
      <UserData>
        <AcceptEula>true</AcceptEula>
        <FullName>************</FullName>
        <Organization>************</Organization>
        </UserData>
    </component>
  </settings>
  <settings pass="oobeSystem">
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
      <OOBE>
        <HideEULAPage>true</HideEULAPage>
        <NetworkLocation>Work</NetworkLocation>
        <ProtectYourPC>1</ProtectYourPC>
        <SkipMachineOOBE>true</SkipMachineOOBE>
        <SkipUserOOBE>true</SkipUserOOBE>
      </OOBE>
      <TimeZone>W. Europe Standard Time</TimeZone>
      <UserAccounts>
        <AdministratorPassword>
          <Value>************</Value>
          <PlainText>true</PlainText>
        </AdministratorPassword>
        <LocalAccounts>
          <LocalAccount>
            <Password>
              <Value></Value>
              <PlainText>true</PlainText>
            </Password>
            <Description>************</Description>
            <DisplayName>************</DisplayName>
            <Group>Users;</Group>
            <Name>>************</</Name>
          </LocalAccount>
        </LocalAccounts>
      </UserAccounts>
     </component>
    <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
      <InputLocale>nl-US</InputLocale>
      <UserLocale>nl-US</UserLocale>
      <UILanguage>nl-US</UILanguage>
      <SystemLocale>nl-US</SystemLocale>
    </component>
  </settings>
  <settings pass="specialize">
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
      <ComputerName>*</ComputerName>
      <CopyProfile>false</CopyProfile>
      <RegisteredOrganization>************</RegisteredOrganization>
      <RegisteredOwner>************</RegisteredOwner>
      <Display>
        <ColorDepth>32</ColorDepth>
        <HorizontalResolution>1024</HorizontalResolution>
        <RefreshRate>60</RefreshRate>
        <VerticalResolution>768</VerticalResolution>
      </Display>
    </component>
  </settings>
<settings pass="generalize">
    <component name="Microsoft-Windows-PnpSysprep" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
      <PersistAllDeviceInstalls>true</PersistAllDeviceInstalls>
      <DoNotCleanUpNotPresentDevices>true</DoNotCleanUpNotPresentDevices>
    </component>
  </settings>

</unattend>

Waar zit de fout?
NetflexAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ReubenwelshCommented:
I wish i could speak german, its such a nice language
Neil RussellTechnical Development LeadCommented:
Und so kann ich!!!
NetflexAuthor Commented:
Sorry :-)

Im trying to syspre a windows 7 64 bits machine with the answer file provided. The upper answer file works fine. When i change the answer file to not remove device drivers with the section:

<settings pass="generalize">
    <component name="Microsoft-Windows-PnpSysprep" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
      <PersistAllDeviceInstalls>true</PersistAllDeviceInstalls>
      <DoNotCleanUpNotPresentDevices>true</DoNotCleanUpNotPresentDevices>
    </component>
  </settings>

i get an error in dutch stating:
Cant
"Could the answer file for unattended installation does not parse or process for Phase [generalize]. A component or institution in the answer file does not exist". (google translate)

What is wrong with teh answer file?

The 7 Worst Nightmares of a Sysadmin

Fear not! To defend your business’ IT systems we’re going to shine a light on the seven most sinister terrors that haunt sysadmins. That way you can be sure there’s nothing in your stack waiting to go bump in the night.

RediersEUS Technology LeadCommented:
Hallo,

Voor zover ik kan zien is
<DoNotCleanUpNotPresentDevices>true</DoNotCleanUpNotPresentDevices>
geen bekent component...

Waar heb je deze info gevonden?
NetflexAuthor Commented:
when i remove <DoNotCleanUpNotPresentDevices>true</DoNotCleanUpNotPresentDevices> from the answer file sysprep finishes with no errors..
RediersEUS Technology LeadCommented:
Moet zijn

<DoNotCleanUpNonPresentDevices>true</DoNotCleanUpNonPresentDevices>

in plaats van

<DoNotCleanUpNotPresentDevices>true</DoNotCleanUpNotPresentDevices>

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
NetflexAuthor Commented:
arghh <DoNotCleanUpNotPresentDevices>true</DoNotCleanUpNotPresentDevices>

it should be <DoNotCleanUpNonPresentDevices>true</DoNotCleanUpNonPresentDevices>
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 7

From novice to tech pro — start learning today.