skipping choose a user name unattend.xml

  • Thread starter Thread starter Mario Savard
  • Start date Start date
M

Mario Savard

Hi gang,

I having difficultie to make my unattend.xml to skip the "Choose a user name
and picture".

Please help on this. I'm looking into the msdn, but it is not really clear
on how to skip that part.

mario
 
Mario Savard said:
Hi gang,

I having difficultie to make my unattend.xml to skip the "Choose a
user name
and picture".

Please help on this. I'm looking into the msdn, but it is not really
clear
on how to skip that part.

From what I've been able to tell, you have to either add or modify a
user in unattend.xml or you will be forced to add a user during the
initial OOBE. I am building an image and resealing it, so my
unattend.xml is used when the system is 1st booted by a user, but the
basic approach should be the same if you are using unattend.xml on a new
install.

Add Microsoft-Windows-Shell-Setup to pass 7 oobeSystem, and under user
accounts / local accounts insert a new user account. It will look
something like this:

<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>UABhAHMAcwB3AG8AcgBkAFAAYQBzAHMAdwBvAHIAZAA=</Value>
<PlainText>false</PlainText>
</Password>
<Description>New User Added in
Unattend.xml</Description>
<DisplayName>My User Name</DisplayName>
<Group>administrators</Group>
<Name>MyUserName</Name>
</LocalAccount>
</LocalAccounts>
</UserAccounts>
</component>
</settings>

I used Windows System Image Manager (WSIM) to generate it, so I can hide
the password. You could change <PlainText>false</PlainText> to
<PlainText>true</PlainText> and put the password in the clear if you
want (or if you don't have WSIM). You can also set different groups if
you want, but I don't know what would happen if you only created a
non-administrator user...

Hope this helps!

Regards,

Dave
 
Thanks Dave,

I know that under Windows XP in the sysprep that we were able to skip it.
It is strange that under Vista we can not do the same. I'm working for
Statistic Canada and we have over 10000 computers. I guess I'll have to
modify the Administrator account to give it a defaut password.

I'll try it thanks again.
 
Hi Dave,

I try to add another account using the same settings that you gave me. But
still no luck. Still getting the prompt and also the account is not being
created. I'm using Vista Enterprise, I don't know if this can help you out.
 
Mario Savard said:
Hi Dave,

I try to add another account using the same settings that you gave me.
But
still no luck. Still getting the prompt and also the account is not
being
created. I'm using Vista Enterprise, I don't know if this can help
you out.

I'm using Vista Business, but I doubt that is complicating things.

Can you post the content of your unattend.xml? I'm no expert, but maybe
I can see what is happening...

Regards,

Dave
 
This is my unattend.xml Is there an option that I'm missing I don't know.

Thnaks Dave. If I don't get it to work I'll call Microsoft Directly since
we do have support for Stats.


<?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.0.6000.16386" processorArchitecture="x86"
publicKeyToken="31bf3856ad364e35" language="" />
<selection name="InboxGames" state="true" />
<selection name="Chess" state="true" />
<selection name="FreeCell" state="true" />
<selection name="Hearts" state="true" />
<selection name="Inkball" state="true" />
<selection name="Minesweeper" state="true" />
<selection name="PurblePlace" state="true" />
<selection name="Shanghai" state="true" />
<selection name="Solitaire" state="true" />
<selection name="SpiderSolitaire" state="true" />
</package>
</servicing>
<settings pass="specialize">
<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>1009:00011009</InputLocale>
<SystemLocale>en-ca</SystemLocale>
<UserLocale>en-ca</UserLocale>
<UILanguage>en-ca</UILanguage>
</component>
<component name="Security-Malware-Windows-Defender"
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">
<DisableAntiSpyware>true</DisableAntiSpyware>
</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">
<AutoLogon>
<Username>Administrator</Username>
<Enabled>true</Enabled>
</AutoLogon>
</component>
</settings>
<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">
<UserData>
<AcceptEula>true</AcceptEula>
<Organization>Statistics/Statistique Canada</Organization>
<FullName>SCSD BUSC</FullName>
</UserData>
<EnableFirewall>false</EnableFirewall>
</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>
<NetworkLocation>Work</NetworkLocation>
<SkipUserOOBE>true</SkipUserOOBE>
<ProtectYourPC>3</ProtectYourPC>
</OOBE>
<TimeZone>Eastern Standard Time</TimeZone>
<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<CommandLine>reg add "HKLM\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\NetworkList" /v firstnetwork /t reg_dword /d 0000000
/f</CommandLine>
<Description>Setting the default network location to
Work</Description>
<Order>1</Order>
</SynchronousCommand>
</FirstLogonCommands>
</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>1009:00011009</InputLocale>
<SystemLocale>en-ca</SystemLocale>
<UILanguage>en-ca</UILanguage>
<UserLocale>en-ca</UserLocale>
</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>
<LocalAccounts>
<LocalAccount wcm:action="add">
<Password>

<Value>RwAwAGwAZgBHADAAbABmAFAAYQBzAHMAdwBvAHIAZAA=</Value>
<PlainText>false</PlainText>
</Password>
<Description>testing</Description>
<DisplayName>bozos</DisplayName>
<Group>Administrators</Group>
<Name>bozo</Name>
</LocalAccount>
</LocalAccounts>
</UserAccounts>
</component>
</settings>
<settings pass="generalize">
<component name="Microsoft-Windows-Security-Licensing-SLC"
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">
<SkipRearm>1</SkipRearm>
</component>
</settings>
<cpi:offlineImage cpi:source="wim:c:/vistasource/install.wim#Windows
Vista ENTERPRISE" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>
 
Mario Savard said:
This is my unattend.xml Is there an option that I'm missing I don't
know.

Thnaks Dave. If I don't get it to work I'll call Microsoft Directly
since
we do have support for Stats.


<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">


*Big Snip*
<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>
<LocalAccounts>
<LocalAccount wcm:action="add">
<Password>

<Value>RwAwAGwAZgBHADAAbABmAFAAYQBzAHMAdwBvAHIAZAA=</Value>
<PlainText>false</PlainText>
</Password>
<Description>testing</Description>
<DisplayName>bozos</DisplayName>
<Group>Administrators</Group>
<Name>bozo</Name>
</LocalAccount>
</LocalAccounts>
</UserAccounts>
</component>
</settings>
I think you've put the account addition in the wrong pass - I've never
used the auditSystem pass (and don't really know what it is used for)
but I'm pretty sure you want the account addition as a part of the
oobeSystem pass. Just remove the <settings pass="auditSystem"> ...
</settings> section entirely, and put the <UserAccounts> ...
</UserAccounts> section just below your <OOBE> ... </OOBE> section.

Hope this helps!

Regards,

Dave
 
Back
Top