MSFN Forum: [SOLVED] AutoUnattend auto-restarting - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[SOLVED] AutoUnattend auto-restarting Solution: Tidy up xml - enter key only in specialize

#1 User is offline   biatche 

  • Member
  • PipPip
  • Group: Members
  • Posts: 194
  • Joined: 23-November 05

Posted 15 November 2009 - 07:05 AM

Goal: Trying to have everything unattended except disk partitioning. This I wanna do manually. Issue occurs around pass=winPE/"Microsoft-Windows-Setup"/key where I enter the license key. Removing the <key></key> line there brings up the UI where I select the edition of Win7 I wish to install, and then I do the disk partitioning after that. So what's wrong with my xml? How do I get directly to disk partitioning.

<?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" 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>0409:00000409</InputLocale>
			<SystemLocale>en-US</SystemLocale>
			<UILanguage>en-US</UILanguage>
			<UserLocale>en-US</UserLocale>
			<UILanguageFallback>en-US</UILanguageFallback>
		</component>
		<component name="Microsoft-Windows-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">
			<ComplianceCheck>
				<DisplayReport>Never</DisplayReport>
			</ComplianceCheck>
			<Diagnostics>
				<OptIn>false</OptIn>
			</Diagnostics>
			<DiskConfiguration>
				<WillShowUI>Always</WillShowUI>
			</DiskConfiguration>
			<Display>
				<ColorDepth>32</ColorDepth>
				<HorizontalResolution>1024</HorizontalResolution>
				<VerticalResolution>768</VerticalResolution>
			</Display>
			<DynamicUpdate>
				<Enable>false</Enable>
				<WillShowUI>OnError</WillShowUI>
			</DynamicUpdate>
			<ImageInstall>
				<OSImage>
					<InstallFrom>
<!--					<Path>\\sparebox\depshare\Operating Systems\Windows 7 x64 - Vanilla\sources\install.wim</Path>-->
						<MetaData wcm:action="add">
							<Key>xxxxx-xxxxx-xxxxx-xxxxx-xxxxx</Key>
							<Value>Windows 7 ULTIMATE</Value>
						</MetaData>
					</InstallFrom>
					<WillShowUI>OnError</WillShowUI>
				</OSImage>
			</ImageInstall>
			<UserData>
				<AcceptEula>true</AcceptEula>
				<FullName>User</FullName>
				<Organization>Home</Organization>
				<ProductKey>
					<Key>xxxxx-xxxxx-xxxxx-xxxxx-xxxxx</Key>
					<WillShowUI>OnError</WillShowUI>
				</ProductKey>
			</UserData>
		</component>
	</settings>
	<settings pass="offlineServicing">
		<component name="Microsoft-Windows-LUA-Settings" 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">
			<EnableLUA>false</EnableLUA>
		</component>
	</settings>
	<settings pass="generalize">
		<component name="Microsoft-Windows-PnpSysprep" 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">
			<PersistAllDeviceInstalls>true</PersistAllDeviceInstalls>
		</component>
	</settings>
	<settings pass="specialize">
		<component name="Microsoft-Windows-IE-InternetExplorer" 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">
			<Home_Page>about:home</Home_Page>
			<CompanyName>Home</CompanyName>
			<FavoritesOnTop>true</FavoritesOnTop>
			<DisableFirstRunWizard>true</DisableFirstRunWizard>
			<DisableWelcomePage>true</DisableWelcomePage>
			<PlaySound>false</PlaySound>
			<ShowInformationBar>false</ShowInformationBar>
			<Window_Title_CN>IE</Window_Title_CN>
			<SearchScopes>
				<Scope wcm:action="add">
					<ScopeDefault>true</ScopeDefault>
					<ScopeDisplayName>google-my</ScopeDisplayName>
					<ScopeKey>google-my</ScopeKey>
					<ScopeUrl>http://www.google.com.my/advanced_search?hl=en</ScopeUrl>
				</Scope>
			</SearchScopes>
		</component>
		<component name="Microsoft-Windows-RemoteAssistance-Exe" 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">
			<fAllowFullControl>false</fAllowFullControl>
			<fAllowToGetHelp>false</fAllowToGetHelp>
		</component>
		<component name="Microsoft-Windows-Security-SPP-UX" 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">
			<SkipAutoActivation>true</SkipAutoActivation>
		</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">
			<ComputerName>*</ComputerName>
			<ProductKey>xxxxx-xxxxx-xxxxx-xxxxx-xxxxx</ProductKey>
			<RegisteredOrganization>Home</RegisteredOrganization>
			<RegisteredOwner>User</RegisteredOwner>
			<AutoLogon>
				<Enabled>true</Enabled>
				<LogonCount>99</LogonCount>
				<Username>admin</Username>
				<Password>
					<PlainText>true</PlainText>
					<Value>123</Value>
				</Password>
			</AutoLogon>
		</component>
	</settings>
	<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">
			<SystemLocale>en-US</SystemLocale>
			<UILanguage>en-US</UILanguage>
			<UserLocale>0409:00000409</UserLocale>
			<UILanguageFallback>en-US</UILanguageFallback>
		</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">
			<RegisteredOrganization>Home</RegisteredOrganization>
			<RegisteredOwner>User</RegisteredOwner>
			<TimeZone>Singapore Standard Time</TimeZone>
			<OEMInformation>
				<Logo>C:\Windows\System32\oemlogo.bmp</Logo>
				<Manufacturer>OEM</Manufacturer>
				<Model>RXPC</Model>
				<SupportHours>24h</SupportHours>
				<SupportPhone>+60</SupportPhone>
				<SupportURL>http://notavailable/</SupportURL>
			</OEMInformation>
			<OOBE>
				<HideEULAPage>true</HideEULAPage>
				<NetworkLocation>Home</NetworkLocation>
				<ProtectYourPC>3</ProtectYourPC>
			</OOBE>
			<UserAccounts>
				<AdministratorPassword>
					<Value>123</Value>
				</AdministratorPassword>
				<LocalAccounts>
					<LocalAccount wcm:action="add">
						<Password>
							<Value>123</Value>
						</Password>
						<Group>Administrators</Group>
						<DisplayName>admin</DisplayName>
						<Name>admin</Name>
					</LocalAccount>
				</LocalAccounts>
			</UserAccounts>
			<VisualEffects>
				<FontSmoothing>ClearType</FontSmoothing>
			</VisualEffects>
		</component>
	</settings>
</unattend>

This post has been edited by biatche: 15 November 2009 - 11:14 PM



#2 User is offline   MrJinje 

  • Tool™ Developer
  • Group: Developers
  • Posts: 862
  • Joined: 14-October 09
  • OS:none specified
  • Country: Country Flag

  Posted 15 November 2009 - 07:25 AM

Maybe try this

<ProductKey>
<WillShowUI>Never</WillShowUI>
</ProductKey>

Otherwise you could integrate your key into your WIM (via DISM command), either way should keep the GUI from showing.

EDIT: Not sure why you have two key blocks ?? I'd get rid of the upper-most one.

Quote

<Key>xxxxx-xxxxx-xxxxx-xxxxx-xxxxx</Key>
<Value>Windows 7 ULTIMATE</Value>
</MetaData>
</InstallFrom>
<WillShowUI>OnError</WillShowUI>
</OSImage>
</ImageInstall>
<UserData>
<AcceptEula>true</AcceptEula>
<FullName>User</FullName>
<Organization>Home</Organization>
<ProductKey>
<Key>xxxxx-xxxxx-xxxxx-xxxxx-xxxxx</Key>
<WillShowUI>OnError</WillShowUI>
</ProductKey>

This post has been edited by MrJinje: 15 November 2009 - 07:30 AM


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy