Jump to content

Recommended Posts

Posted (edited)

Hi,

I'm trying to make an unattended installation of Windows 7 (my first one ever) so I made have messed up some things.

I get an error saying: "Windows could not apply Windows PE Bootstrap setting specified in the unattend answer file"

Below my autounattend.xml - can someone tell me what's wrong with it?

What I'm trying to acchieve is that the setup runs from an USB stick. So no data resides on network locations etc.

Thanks in advance. Mark


<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<servicing>
<package action="configure">
<assemblyIdentity name="Microsoft-Windows-Foundation-Package" version="6.1.7600.16385" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="" />
<selection name="TelnetClient" state="true" />
<selection name="Printing-Foundation-Features" state="false" />
<selection name="Indexing-Service-Package" state="true" />
<selection name="Printing-XPSServices-Features" state="true" />
</package>
</servicing>
<settings pass="specialize">
<component name="Microsoft-Windows-ErrorReportingCore" 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">
<DefaultConsent>1</DefaultConsent>
<DisableWER>1</DisableWER>
</component>
<component name="Microsoft-Windows-IE-ClientNetworkProtocolImplementation" 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">
<CacheLimit>102400</CacheLimit>
</component>
<component name="Microsoft-Windows-IE-InternetExplorer" 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">
<DisableAccelerators>true</DisableAccelerators>
<BlockPopups>yes</BlockPopups>
<DisableDataExecutionPrevention>false</DisableDataExecutionPrevention>
<DisableFirstRunWizard>true</DisableFirstRunWizard>
<FavoritesDelete>true</FavoritesDelete>
<Home_Page>http://www.google.nl</Home_Page>
<LockToolbars>true</LockToolbars>
<NoDial>true</NoDial>
<PlaySound>true</PlaySound>
<ShowInformationBar>true</ShowInformationBar>
<ShowMenuBar>true</ShowMenuBar>
<SuggestedSitesEnabled>false</SuggestedSitesEnabled>
</component>
<component name="Microsoft-Windows-Printing-Spooler-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">
<RemoveMXDW>1</RemoveMXDW>
</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>false</SkipAutoActivation>
</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">
<BluetoothTaskbarIconEnabled>true</BluetoothTaskbarIconEnabled>
<ComputerName>*</ComputerName>
<CopyProfile>false</CopyProfile>
<DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
<DoNotCleanTaskBar>false</DoNotCleanTaskBar>
<ProductKey>xxxxx-xxxxx-xxxxx-xxxxx-xxxxx</ProductKey>
<RegisteredOrganization>John Doe</RegisteredOrganization>
<RegisteredOwner>ABC B.V.</RegisteredOwner>
<ShowWindowsLive>false</ShowWindowsLive>
<StartPanelOff>false</StartPanelOff>
<TimeZone>Central Europe Standard Time</TimeZone>
</component>
<component name="Microsoft-Windows-SQMApi" 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">
<CEIPEnabled>0</CEIPEnabled>
</component>
<component name="Microsoft-Windows-SystemRestore-Main" 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">
<DisableSR>0</DisableSR>
</component>
</settings>
<settings pass="generalize">
<component name="Microsoft-Windows-SharedAccess" 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">
<EnableICS>false</EnableICS>
</component>
<component name="Microsoft-Windows-SNMP-Agent-Service" 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">
<EnableAuthenticationTraps>false</EnableAuthenticationTraps>
</component>
</settings>
<settings pass="oobeSystem">
<component name="Microsoft-Windows-IE-ClientNetworkProtocolImplementation" 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">
<HKLMConnectRetries>5</HKLMConnectRetries>
<HKLMConnectTimeOut>60000</HKLMConnectTimeOut>
<HKLMProxyEnable>false</HKLMProxyEnable>
<HKLMReceiveTimeOut>30000</HKLMReceiveTimeOut>
<HKLMSendTimeOut>30000</HKLMSendTimeOut>
</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>1043:00020409</InputLocale>
<SystemLocale>nl-NL</SystemLocale>
<UILanguage>nl-NL</UILanguage>
<UILanguageFallback>en-US</UILanguageFallback>
<UserLocale>nl-NL</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>
<AdministratorPassword>
<Value>xxxxx</Value>
<PlainText>false</PlainText>
</AdministratorPassword>
</UserAccounts>
<WindowsFeatures>
<ShowInternetExplorer>true</ShowInternetExplorer>
<ShowMediaCenter>false</ShowMediaCenter>
<ShowWindowsMail>false</ShowWindowsMail>
<ShowWindowsMediaPlayer>true</ShowWindowsMediaPlayer>
</WindowsFeatures>
</component>
<component name="Microsoft-Windows-Sidebar" 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">
<SidebarOnByDefault>false</SidebarOnByDefault>
<SidebarVisible>false</SidebarVisible>
</component>
</settings>
<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">
<InputLocale>1043:00020409</InputLocale>
<SystemLocale>nl-NL</SystemLocale>
<UILanguage>nl-NL</UILanguage>
<UserLocale>nl-NL</UserLocale>
<UILanguageFallback>en-US</UILanguageFallback>
</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">
<ComplianceCheck>
<DisplayReport>OnError</DisplayReport>
</ComplianceCheck>
<DiskConfiguration>
<Disk wcm:action="add">
<CreatePartitions>
<CreatePartition wcm:action="add">
<Size>40000</Size>
<Type>Primary</Type>
<Order>1</Order>
</CreatePartition>
<CreatePartition wcm:action="add">
<Order>2</Order>
<Extend>true</Extend>
<Type>Primary</Type>
</CreatePartition>
</CreatePartitions>
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
</Disk>
<WillShowUI>OnError</WillShowUI>
</DiskConfiguration>
<Display>
<ColorDepth>32</ColorDepth>
<HorizontalResolution>1280</HorizontalResolution>
<VerticalResolution>1024</VerticalResolution>
<RefreshRate>60</RefreshRate>
</Display>
<DynamicUpdate>
<Enable>true</Enable>
</DynamicUpdate>
<PageFile>
<Path>%windir%</Path>
<Size>2048</Size>
</PageFile>
<UserData>
<ProductKey>
<WillShowUI>Never</WillShowUI>
<Key>xxxxx-xxxxx-xxxx-xxxx-xxxx </ProductKey>
<AcceptEula>true</AcceptEula>
<FullName>John Doe</FullName>
<Organization>ABC B.V.</Organization>
</UserData>
<EnableFirewall>true</EnableFirewall>
<EnableNetwork>true</EnableNetwork>
<LogPath>c:\</LogPath>
<Restart>Restart</Restart>
<UseConfigurationSet>true</UseConfigurationSet>
</component>
</settings>
<settings pass="offlineServicing">
<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">
<BluetoothTaskbarIconEnabled>true</BluetoothTaskbarIconEnabled>
<DoNotCleanTaskBar>false</DoNotCleanTaskBar>
<RegisteredOwner>John Doe</RegisteredOwner>
<RegisteredOrganization>ABC B.V.</RegisteredOrganization>
<StartPanelOff>false</StartPanelOff>
</component>
</settings>
<cpi:offlineImage cpi:source="wim:%configsetroot%/sources/install.wim#Windows 7 ULTIMATE" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

Edited by markb81

Posted

I'm sure if you validated your XML in WSIM you would have an error. This for example:

                <ProductKey>
<WillShowUI>Never</WillShowUI>
<Key>xxxxx-xxxxx-xxxx-xxxx-xxxx </ProductKey>

However, this might be because you copypasta your XML into the post. You should attach your XML to your post sans product key.

Posted

Hi Tripredacus,

I only get a few warnings in WSIM. No errors.

The code above is a copy/paste typo.

Thanks.

Mark

Posted

Hi Tripredacus,

I only get a few warnings in WSIM. No errors.

The code above is a copy/paste typo.

Thanks.

Mark

markb81, your problem may be your log path. From unattend.chm, concerning <LogPath>:

Specifies the fully qualified, non-UNC path to a directory on a fixed disk of the local computer.

For example, to create log files in a Log folder at the root of C:, set this value to C:\Log.

Path_to_log_file is a string, with a maximum length of 259 characters.

Please let us know what you find. Enjoy, John.
Posted

I rebuilded the answer file with only required things (below), and I think I'm a little further now.

The problem was in the <pagefile>. However when I type in %windir% or %windir%\pagefile.sys I get the same error in the new answer file as well.

After removing this entry setup runs

What I want to acchieve now is that after setup has run:

- The wireless connection dialog appears so you can make an internet connection

- Windows is activated

- MS office is automatically installed (source must be the installation USB stick)

- A virusscanner is installexd (source must be the installation USB stick)

How can I accomplish this?

Thanks again.

Mark



<unattend xmlns="urn:schemas-microsoft-com:unattend">
<servicing>
<package action="configure">
<assemblyIdentity name="Microsoft-Windows-Foundation-Package" version="6.1.7600.16385" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="" />
<selection name="TelnetClient" state="true" />
</package>
</servicing>
<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>nl-NL</UILanguage>
</SetupUILanguage>
<InputLocale>1043:00020409</InputLocale>
<SystemLocale>nl-NL</SystemLocale>
<UILanguage>nl-NL</UILanguage>
<UserLocale>nl-NL</UserLocale>
<UILanguageFallback>en-US</UILanguageFallback>
</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">
<ComplianceCheck>
<DisplayReport>OnError</DisplayReport>
</ComplianceCheck>
<DiskConfiguration>
<Disk wcm:action="add">
<CreatePartitions>
<CreatePartition wcm:action="add">
<Extend>false</Extend>
<Order>1</Order>
<Type>Primary</Type>
<Size>40000</Size>
</CreatePartition>
<CreatePartition wcm:action="add">
<Extend>true</Extend>
<Order>2</Order>
<Type>Primary</Type>
</CreatePartition>
</CreatePartitions>
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
<ModifyPartitions>
<ModifyPartition wcm:action="add">
<Active>true</Active>
<Format>NTFS</Format>
<Label>System</Label>
<Order>1</Order>
<PartitionID>1</PartitionID>
</ModifyPartition>
<ModifyPartition wcm:action="add">
<Label>Data</Label>
<Order>2</Order>
<PartitionID>2</PartitionID>
<Format>NTFS</Format>
</ModifyPartition>
</ModifyPartitions>
</Disk>
<WillShowUI>OnError</WillShowUI>
</DiskConfiguration>
<UserData>
<ProductKey>
<Key>xxxxx-xxxxx-xxxxx-xxxxx-xxxxx</Key>
<WillShowUI>Never</WillShowUI>
</ProductKey>
<AcceptEula>true</AcceptEula>
</UserData>
<ImageInstall>
<OSImage>
<InstallTo>
<DiskID>0</DiskID>
<PartitionID>1</PartitionID>
</InstallTo>
<InstallToAvailablePartition>false</InstallToAvailablePartition>
<WillShowUI>OnError</WillShowUI>
</OSImage>
</ImageInstall>
<Display>
<ColorDepth>32</ColorDepth>
<HorizontalResolution>1024</HorizontalResolution>
<RefreshRate>60</RefreshRate>
<VerticalResolution>768</VerticalResolution>
</Display>
<EnableFirewall>true</EnableFirewall>
<EnableNetwork>true</EnableNetwork>
<LogPath>c:\</LogPath>
</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">
<OOBE>
<HideEULAPage>true</HideEULAPage>
<ProtectYourPC>1</ProtectYourPC>
</OOBE>
</component>
</settings>
<settings pass="specialize">
<component name="Microsoft-Windows-IE-InternetExplorer" 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">
<BlockPopups>yes</BlockPopups>
<DisableAccelerators>true</DisableAccelerators>
<DisableDataExecutionPrevention>false</DisableDataExecutionPrevention>
<DisableFirstRunWizard>true</DisableFirstRunWizard>
<FavoritesDelete>true</FavoritesDelete>
<Home_Page>http://www.google.nl</Home_Page>
</component>
</settings>
<cpi:offlineImage cpi:source="wim:c:/documents%20and%20settings/uav670/desktop/xx/install.wim#Windows 7 ULTIMATE" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

Posted

ok, I'm a little further then expected.

After setup completes I do get the wireless connection options, and I can type in Username/pw + computername.

After logging on updating starts. Activation isn't done but my serial came through cause I can do it manually.

So open items are:

- Windows must be activated

- MS office is automatically installed (source must be the installation USB stick)

- A virusscanner is installexd (source must be the installation USB stick)

Anybody that can help?

thnx,

Mark

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...