Deployment Solution

 View Only
  • 1.  Can't skip OOBE using sysprep

    Posted Nov 20, 2010 09:26 PM

    I don't know if i'm retarded (i hope not) but i am def missing something here, i'm deploying Win 7 32-bit and all i want to do is skip the oobe process, basically make it so after sysprep the machine won't ask the user for laguage, password, EULA, etc and instead it will just leave the user on the logon screen. I have created at least 20 different computations of answer files and all i can say is thank god for VM snapshots. here's my answer file if anyone can help me out it would be greatly appreciated.

     

    <?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="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">
    - <SetupUILanguage>
      <UILanguage>en-us</UILanguage>
      </SetupUILanguage>
      <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-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">
    - <UserData>
    - <ProductKey>
      <WillShowUI>OnError</WillShowUI>
      <Key>xxxxx-xxxxxx-xxxxx-xxxxxx-xxxxx</Key>
      </ProductKey>
      <AcceptEula>true</AcceptEula>
      </UserData>
      </component>
      </settings>
    - <settings pass="oobeSystem">
    - <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>*******************</Value>
      <PlainText>false</PlainText>
      </Password>
      <Description>lc</Description>
      <DisplayName>lc</DisplayName>
      <Group>administrators</Group>
      <Name>LC</Name>
      </LocalAccount>
      </LocalAccounts>
      </UserAccounts>
    - <OOBE>
      <NetworkLocation>Work</NetworkLocation>
      <ProtectYourPC>1</ProtectYourPC>
      <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
      <HideEULAPage>true</HideEULAPage>
      <SkipMachineOOBE>true</SkipMachineOOBE>
      <SkipUserOOBE>false</SkipUserOOBE>
      </OOBE>
      <TimeZone>Eastern Standard Time</TimeZone>
      <RegisteredOwner>LCPS</RegisteredOwner>
      <RegisteredOrganization>LCPS</RegisteredOrganization>
      </component>
    - <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>
      <UILanguageFallback>en-US</UILanguageFallback>
      <UserLocale>en-US</UserLocale>
      </component>
      </settings>
    - <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">
    - <AutoLogon>
    - <Password>
      <Value>*******************</Value>
      <PlainText>false</PlainText>
      </Password>
      <LogonCount>2</LogonCount>
      <Username>Administrator</Username>
      <Enabled>true</Enabled>
      </AutoLogon>
      <ComputerName>LC-PC</ComputerName>
      </component>
      </settings>
      <cpi:offlineImage cpi:source="catalog:f:/sources/install_windows 7 professional.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
      </unattend>


  • 2.  RE: Can't skip OOBE using sysprep

    Posted Nov 23, 2010 09:45 AM

    First hide your license key!

     

    I cannot see any errors there.

     

     

    Here is example unattend.xml that im using to get fully unattended.

     

    <?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>
                <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>
                    <ProtectYourPC>1</ProtectYourPC>
                    <NetworkLocation>Work</NetworkLocation>
                    <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                </OOBE>
                <UserAccounts>
                    <AdministratorPassword>
                        <Value>*******************</Value>
                        <PlainText>false</PlainText>
                    </AdministratorPassword>
                </UserAccounts>
                <TimeZone>FLE 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">
                <ProductKey>************************</ProductKey>
                <ComputerName>%COMPNAME%</ComputerName>
                <CopyProfile>false</CopyProfile>
            </component>
        </settings>
        <cpi:offlineImage cpi:source="wim:c:/img/install.wim#Windows 7 ENTERPRISE" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>



  • 3.  RE: Can't skip OOBE using sysprep

    Posted Nov 23, 2010 09:48 AM

    What a sec!

     

    I just found that you are missing CopyProfile from specialize step.

     

    Add this line             <CopyProfile>false</CopyProfile>

     

    look my example unattend.xml



  • 4.  RE: Can't skip OOBE using sysprep

    Posted Nov 25, 2010 09:45 AM

    thanks for the help guys, i figured it out, it turns out it was my own stupidity that was driving me insane, i created a VM snapshot so it would be easier for me to test the answer file but when i ran sysprep i forgot to add the unattend switch.