Jump to content

Recommended Posts

Posted

Hi Folks, I've had a good look round the site before posting this so appologies if I've missed something. My autounattend.xml continues to prompt for a User Accounr, Protection and Location even though I have these set. Can someone help me identify the issue as everything looks fine to me.....

<?xml version="1.0" encoding="utf-8"?>

<unattend xmlns="urn:schemas-microsoft-com:unattend">

<settings pass="windowsPE">

<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">

<DiskConfiguration>

<Disk wcm:action="add">

<CreatePartitions>

<CreatePartition wcm:action="add">

<Order>1</Order>

<Size>12000</Size>

<Type>Primary</Type>

</CreatePartition>

</CreatePartitions>

<ModifyPartitions>

<ModifyPartition wcm:action="add">

<Active>true</Active>

<Extend>false</Extend>

<Format>NTFS</Format>

<Label>OS_Install</Label>

<Letter>C</Letter>

<Order>1</Order>

<PartitionID>1</PartitionID>

</ModifyPartition>

</ModifyPartitions>

<DiskID>0</DiskID>

<WillWipeDisk>true</WillWipeDisk>

</Disk>

<WillShowUI>OnError</WillShowUI>

</DiskConfiguration>

<ImageInstall>

<OSImage>

<InstallTo>

<DiskID>0</DiskID>

<PartitionID>1</PartitionID>

</InstallTo>

<WillShowUI>OnError</WillShowUI>

</OSImage>

</ImageInstall>

<UserData>

<ProductKey>

<WillShowUI>OnError</WillShowUI>

<Key>xxxxxxxxxxxxxxxxxxxxxxxx</Key>

</ProductKey>

<AcceptEula>true</AcceptEula>

<FullName>xxxxxxxxxxxxxxxxx</FullName>

<Organization>xxxxxxxxxxxxxxxxx</Organization>

</UserData>

</component>

<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-GB</UILanguage>

</SetupUILanguage>

<InputLocale>en-GB</InputLocale>

<SystemLocale>en-GB</SystemLocale>

<UILanguage>en-US</UILanguage>

<UILanguageFallback>en-GB</UILanguageFallback>

<UserLocale>en-GB</UserLocale>

</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>

<AdministratorPassword>

<Value>UABhAHMAcwB3AG8AcgBkAEEAZABtAGkAbgBpAHMAdAByAGEAdABvAHIAUABhAHMAcwB3AG8AcgBkAA==</Value>

<PlainText>false</PlainText>

</AdministratorPassword>

<LocalAccounts>

<LocalAccount wcm:action="add">

<Password>

<Value>aABwAGMAZABzAFAAYQBzAHMAdwBvAHIAZAA=</Value>

<PlainText>false</PlainText>

</Password>

<Description>Test Account</Description>

<DisplayName>Test User</DisplayName>

<Group>administrators;users</Group>

<Name>TestUser</Name>

</LocalAccount>

</LocalAccounts>

</UserAccounts>

<TimeZone>GMT Standard Time</TimeZone>

<OOBE>

<HideEULAPage>true</HideEULAPage>

<NetworkLocation>Other</NetworkLocation>

<ProtectYourPC>1</ProtectYourPC>

<SkipUserOOBE>true</SkipUserOOBE>

<SkipMachineOOBE>true</SkipMachineOOBE>

</OOBE>

</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-GB</InputLocale>

<SystemLocale>en-GB</SystemLocale>

<UILanguage>en-US</UILanguage>

<UILanguageFallback>en-GB</UILanguageFallback>

<UserLocale>en-GB</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">

<ComputerName>*</ComputerName>

<TimeZone>GMT Standard Time</TimeZone>

<RegisteredOrganization>xxxxxxxxxxxxxxx</RegisteredOrganization>

<RegisteredOwner>xxxxxxx</RegisteredOwner>

</component>

<component name="Microsoft-Windows-Security-Licensing-SLC-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>

<cpi:offlineImage cpi:source="wim:c:/temp/vista/full/sources/install.wim#Windows Vista BUSINESS" xmlns:cpi="urn:schemas-microsoft-com:cpi" />

</unattend>


Posted

I believe that you are suppose to use user settings at two different places (or passes) as the reference guide has mentioned. And I only see you are only using one (oobeSystem). I have pasted the topic from that guide below please use it to correct your xml file and then try it.

LocalAccounts

LocalAccounts specifies local accounts to be created during installation.

You can use sysprep/generalize in conjunction with LocalAccounts to change account information. See the Best Practices for Authoring Answer Files topic for details.

<h1 class="heading">Child Elements</h1> LocalAccount

Specifies a local account to be created during installation.

<h1 class="heading">Valid Passes</h1> auditSystem

oobeSystem

<h1 class="heading">Parent Hierarchy</h1> Microsoft-Windows-Shell-Setup| UserAccounts | LocalAccounts

<h1 class="heading">Applies To</h1> This element is available in the following editions and architectures.

Editions Architectures the Windows Vista family

All

<h1 class="heading">XML Example</h1> The following XML output shows how to set user accounts.

<UserAccounts>

<LocalAccounts>

<LocalAccount wcm:action="add">

<Password>

<Value>cAB3AFAAYQBzAHMAdwBvAHIAZAA</Value>

<PlainText>false</PlainText>

</Password>

<Description>Test account</Description>

<DisplayName>Admin/Power User Account</DisplayName>

<Group>Administrators;Power Users</Group>

<Name>Test1</Name>

</LocalAccount>

<LocalAccount wcm:action="add">

<Password>

<Value>cABhAHMAcwB3AG8AcgBkAFAAYQBzAHMAdwBvAHIAZAA=</Value>

<PlainText>false</PlainText>

</Password>

<Description>For testing</Description>

<DisplayName>Admin Account</DisplayName>

<Group>Administrators</Group>

<Name>Test2</Name>

</LocalAccount>

</LocalAccounts>

</UserAccounts>

Posted (edited)

Can you elaborate within SIM as to which user acccount settings have to be set. It prompts me for the user, location, and computer name everytime. Skip user oobe is set to true.

Edited by lubinski
Posted

Here is the sample xml file which skips all the prompts and auto login to machine twice.

<?xml version="1.0" encoding="utf-8"?>

<unattend xmlns="urn:schemas-microsoft-com:unattend">

<settings pass="windowsPE">

<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">

<DiskConfiguration>

<Disk wcm:action="add">

<CreatePartitions>

<CreatePartition wcm:action="add">

<Order>1</Order>

<Size>12000</Size>

<Type>Primary</Type>

</CreatePartition>

</CreatePartitions>

<ModifyPartitions>

<ModifyPartition wcm:action="add">

<Active>true</Active>

<Extend>false</Extend>

<Format>NTFS</Format>

<Label>OS_Install</Label>

<Letter>C</Letter>

<Order>1</Order>

<PartitionID>1</PartitionID>

</ModifyPartition>

</ModifyPartitions>

<DiskID>0</DiskID>

<WillWipeDisk>true</WillWipeDisk>

</Disk>

<WillShowUI>OnError</WillShowUI>

</DiskConfiguration>

<ImageInstall>

<OSImage>

<InstallTo>

<DiskID>0</DiskID>

<PartitionID>1</PartitionID>

</InstallTo>

<WillShowUI>OnError</WillShowUI>

</OSImage>

</ImageInstall>

<UserData>

<ProductKey>

<WillShowUI>OnError</WillShowUI>

<Key>xxxxxxxxxxxxxxxxxxxxxxxx</Key>

</ProductKey>

<AcceptEula>true</AcceptEula>

<FullName>xxxxxxxxxxxxxxxxx</FullName>

<Organization>xxxxxxxxxxxxxxxxx</Organization>

</UserData>

</component>

<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-GB</UILanguage>

</SetupUILanguage>

<InputLocale>en-GB</InputLocale>

<SystemLocale>en-GB</SystemLocale>

<UILanguage>en-US</UILanguage>

<UILanguageFallback>en-GB</UILanguageFallback>

<UserLocale>en-GB</UserLocale>

</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>

<AdministratorPassword>

<Value>123456</Value>

<PlainText>true</PlainText>

</AdministratorPassword>

<LocalAccounts>

<LocalAccount wcm:action="add">

<Password>

<Value>123456</Value>

<PlainText>true</PlainText>

</Password>

<Description>Test Account</Description>

<DisplayName>Test User</DisplayName>

<Group>administrators</Group>

<Name>Test</Name>

</LocalAccount>

</LocalAccounts>

</UserAccounts>

<TimeZone>GMT Standard Time</TimeZone>

<OOBE>

<HideEULAPage>true</HideEULAPage>

<NetworkLocation>Other</NetworkLocation>

<ProtectYourPC>1</ProtectYourPC>

<SkipUserOOBE>true</SkipUserOOBE>

<SkipMachineOOBE>true</SkipMachineOOBE>

</OOBE>

<AutoLogon>

<Password>

<Value>123456</Value>

<PlainText>true</PlainText>

</Password>

<Enabled>true</Enabled>

<LogonCount>2</LogonCount>

<Username>administrator</Username>

</AutoLogon>

</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-GB</InputLocale>

<SystemLocale>en-GB</SystemLocale>

<UILanguage>en-US</UILanguage>

<UILanguageFallback>en-GB</UILanguageFallback>

<UserLocale>en-GB</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">

<ComputerName>*</ComputerName>

<TimeZone>GMT Standard Time</TimeZone>

<RegisteredOrganization>xxxxxxxxxxxxxxx</RegisteredOrganization>

<RegisteredOwner>xxxxxxx</RegisteredOwner>

</component>

<component name="Microsoft-Windows-Security-Licensing-SLC-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="auditSystem">

<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>123456</Value>

<PlainText>true</PlainText>

</AdministratorPassword>

<LocalAccounts>

<LocalAccount wcm:action="add">

<Password>

<Value>aABwAGMAZABzAFAAYQBzAHMAdwBvAHIAZAA=</Value>

<PlainText>false</PlainText>

</Password>

<Description>Test Account</Description>

<DisplayName>Test User</DisplayName>

<Group>administrators;users</Group>

<Name>TestUser</Name>

</LocalAccount>

<LocalAccount wcm:action="add">

<Password>

<Value>123456</Value>

<PlainText>true</PlainText>

</Password>

<Description>Test Account</Description>

<DisplayName>Test User</DisplayName>

<Group>administrators</Group>

<Name>test</Name>

</LocalAccount>

</LocalAccounts>

</UserAccounts>

</component>

</settings>

<cpi:offlineImage cpi:source="wim:d:/vistawork/dvd/sources/install.wim#Windows Vista ENTERPRISE" xmlns:cpi="urn:schemas-microsoft-com:cpi" />

</unattend>

I have edited few of the settings but once you open this file using SIM then point to proper install.wim (I have highlighted the line). with above xml file, i have installed vista twiced without any prompts.

Posted

Whats the purpose of having the user account in the specialize pass and the OOBE pass? The same user account is in both passes. Surely it doesn't create the user twice.

Posted (edited)

I tried your unattended.xml and it still prompts the same. Any other suggestions as to why my unattend is not working. Hardware? Image?

Edited by lubinski
Posted

Thanks for your time guys! Turns out the Unattend was OK and the problem was with the WIM I was using. I've created a new WIM from Volume License media and everything now appears OK.

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...