Jump to content

Autounattended.xml - Why it doesn't work?


Recommended Posts

With the help of a lot of people on the forum here (although they didn't even know it :P), I have managed to create an Autounattend.xml.

The problem now is however, that it doesn't work properly.

At least: it doesn't automatically create the user I specified and asks me the autoprotection settings.

I have specified

		<OOBE>
<HideEULAPage>true</HideEULAPage>
<NetworkLocation>Home</NetworkLocation>
<ProtectYourPC>3</ProtectYourPC>
<SkipMachineOOBE>true</SkipMachineOOBE>
<SkipUserOOBE>true</SkipUserOOBE>
</OOBE>
<TimeZone>W. Europe Standard Time</TimeZone>
<UserAccounts>
<AdministratorPassword>
<Value>ThisIsATempPass</Value>
<PlainText>true</PlainText>
</AdministratorPassword>
<LocalAccounts>
<LocalAccount wcm:action="add">
<Password>
<Value>temporary</Value>
<PlainText>true</PlainText>
</Password>
<Description>It's me</Description>
<DisplayName>me</DisplayName>
<Group>Administrators</Group>
<Name>me</Name>
</LocalAccount>
</LocalAccounts>
</UserAccounts>

Also my setupcomplete.cmd doesn't run, but that is another issue.

Underneath is my autounattend.xml

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="windowsPE">
<!-- This part specifies the registerd owner and organization of the computer, as well as the productkey. Only the Owner and Organization should be changed !-->
<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">
<UserData>
<AcceptEula>true</AcceptEula>
<!-- ######################################### CHANGE ######################################### !-->
<!-- Change these two values !-->
<!-- ######################################### CHANGE ######################################### !-->
<FullName>Me</FullName>
<Organization>Org</Organization>
<!-- Thank you for making changes, please read on !-->
<!-- It's the product key. Don't change it !-->
<ProductKey>
<Key>Removed</Key>
<WillShowUI>Never</WillShowUI>
</ProductKey>
</UserData>
<!-- Compliance check, it checks whether your pc is capable of running Windows Vista. Assuming it can, this part has been disabled !-->
<ComplianceCheck>
<DisplayReport>Never</DisplayReport>
</ComplianceCheck>
<!-- This key specifies where the log-file of the setup is being written !-->
<LogPath>%SystemRoot%\temp</LogPath>
<!-- This part specifies which image is installed (Vista Ultimate), whether it is installed to an available parititon (no) and that the Disk Configuration Manger will always be shown. In addition, Dynamic Update has been disabled !-->
<DiskConfiguration>
<WillShowUI>Always</WillShowUI>
</DiskConfiguration>
<DynamicUpdate>
<Enable>false</Enable>
</DynamicUpdate>
<ImageInstall>
<OSImage>
<InstallFrom>
<MetaData wcm:action="add">
<Key>/IMAGE/NAME</Key>
<Value>Windows Vista ULTIMATE</Value>
</MetaData>
</InstallFrom>
<InstallToAvailablePartition>false</InstallToAvailablePartition>
<WillShowUI>OnError</WillShowUI>
</OSImage>
</ImageInstall>
</component>
<!-- This part specifies the Inputlocales and should not be changed !-->
<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:00020409</InputLocale>
<UserLocale>nl-NL</UserLocale>
<UILanguage>en-US</UILanguage>
<SystemLocale>nl-NL</SystemLocale>
</component>
</settings>

<settings pass="oobeSystem">
<!-- This part contains all "basic" settings of the PC, like the EULA acceptance, which network you are at, and such. It also creates the first user account, and assigns the Administrator password. You should change the corresponding attributes in this part that are specific to you as a user.!-->
<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">
<!-- This part disable EULA Acceptance and OOBE at first Logon !-->
<OOBE>
<HideEULAPage>true</HideEULAPage>
<NetworkLocation>Home</NetworkLocation>
<ProtectYourPC>3</ProtectYourPC>
<SkipMachineOOBE>true</SkipMachineOOBE>
<SkipUserOOBE>true</SkipUserOOBE>
</OOBE>
<TimeZone>W. Europe Standard Time</TimeZone>
<UserAccounts>
<AdministratorPassword>
<!-- ######################################### CHANGE ######################################### !-->
<!-- Change this value to a password for your Administrator (and don't lose it) !-->
<!-- ######################################### CHANGE ######################################### !-->
<Value>ThisIsATempPass</Value>
<!-- Thank you for making changes, please read on !-->
<PlainText>true</PlainText>
</AdministratorPassword>
<LocalAccounts>
<LocalAccount wcm:action="add">
<Password>
<!-- ######################################### CHANGE ######################################### !-->
<!-- Enter your desired password over here !-->
<!-- ######################################### CHANGE ######################################### !-->
<Value>temporary</Value>
<!-- Thank you for changes, please read on !-->
<PlainText>true</PlainText>
</Password>
<!-- ######################################### CHANGE ######################################### !-->
<!-- Here we specifiy the description of your user, make it whatever you like !-->
<!-- ######################################### CHANGE ######################################### !-->
<Description>It's me</Description>
<!-- ######################################### CHANGE ######################################### !-->
<!-- Here we specify the display name of your user. I entered my full name here !-->
<!-- ######################################### CHANGE ######################################### !-->
<DisplayName>Me</DisplayName>
<!-- No need to change this entry!-->
<Group>Administrators</Group>
<!-- ######################################### CHANGE ######################################### !-->
<!-- Sspecify the username of your user, can be anything as long as it is not your DisplayName !-->
<!-- ######################################### CHANGE ######################################### !-->
<Name>me</Name>
<!-- Thank you for making changes, please read on !-->
</LocalAccount>
</LocalAccounts>
</UserAccounts>
<VisualEffects>
<!-- This value specifies that ClearType will be used for Font Smoothing !-->
<FontSmoothing>ClearType</FontSmoothing>
</VisualEffects>
</component>

<!-- This part defines that the SideBar is on by default and is visible, no changes needed !-->
<component name="Microsoft-Windows-Sidebar" 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">
<SidebarOnByDefault>true</SidebarOnByDefault>
<SidebarVisible>true</SidebarVisible>
</component>

<!-- Here is another definition of the inputlocale and user location settings, no changes needed !-->
<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>0409:00020409</InputLocale>
<UserLocale>nl-NL</UserLocale>
<UILanguage>en-US</UILanguage>
<SystemLocale>nl-NL</SystemLocale>
</component>
</settings>

<settings pass="specialize">
<!-- This part specifies some other user settings, like the Computername, Registered Organization and Registered Owner, as well as the initial Display Resolution and the Autologon for the first few passes !-->
<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">
<!-- ######################################### CHANGE ######################################### !-->
<!-- Enter the name for your computer here !-->
<!-- ######################################### CHANGE ######################################### !-->
<ComputerName>MyDesktop</ComputerName>
<!-- ######################################### CHANGE ######################################### !-->
<!-- Enter the Registered Organization here (if any) !-->
<!-- ######################################### CHANGE ######################################### !-->
<RegisteredOrganization>Me</RegisteredOrganization>
<!-- ######################################### CHANGE ######################################### !-->
<!-- Enter the Registered Owner here (so basically your full name) !-->
<!-- ######################################### CHANGE ######################################### !-->
<RegisteredOwner>Me</RegisteredOwner>
<!-- Thank you for making changes, please read on !-->
<!-- In this part, we will specify the AutoLogon Password and username. The logon count is set to 10 times, and can remain like that. This should give you enough time to install your drivers and such without having to enter your password on each reboot (which can be annoying, to say the least) !-->
<AutoLogon>
<Password>
<!-- ######################################### CHANGE ######################################### !-->
<!-- Please change this value to the password set above for your user account !-->
<!-- ######################################### CHANGE ######################################### !-->
<Value>temporary</Value>
<!-- Thank you for making changes, please read on !-->
<PlainText>true</PlainText>
</Password>
<Enabled>true</Enabled>
<LogonCount>10</LogonCount>
<!-- ######################################### CHANGE ######################################### !-->
<!-- Please change this value to the username you have set above !-->
<!-- ######################################### CHANGE ######################################### !-->
<Username>ben2404</Username>
<!-- Thank you for making changes, please read on !-->
</AutoLogon>
<!-- This part specifies the screen resolution, depth and refresh rate, no changes needed !-->
<Display>
<ColorDepth>32</ColorDepth>
<HorizontalResolution>1280</HorizontalResolution>
<RefreshRate>60</RefreshRate>
<VerticalResolution>1024</VerticalResolution>
</Display>
</component>

<!-- This part specifies the joining of a workgroup that you can specify !-->
<component name="Microsoft-Windows-UnattendedJoin" 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">
<Identification>
<!-- ######################################### CHANGE ######################################### !-->
<!-- Please change this value to the workgroup you would like to join !-->
<!-- ######################################### CHANGE ######################################### !-->
<JoinWorkgroup>Ben001</JoinWorkgroup>
<!-- Thank you for making changes, please read on !-->
</Identification>
</component>

<!-- In this part some customizations for Internet Explorer are set. The homepage is set to Google, the pop-up blocker is on, the filter set to medium and the information bar will be shown !-->
<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>http://www.google.com</Home_Page>
<Help_Page>http://www.google.com</Help_Page>
<BlockPopups>yes</BlockPopups>
<FilterLevel>Medium</FilterLevel>
<PlaySound>true</PlaySound>
<ShowInformationBar>true</ShowInformationBar>
<FavoritesDelete>false</FavoritesDelete>
<IEWelcomeMsg>true</IEWelcomeMsg>
</component>

<!-- This part specifies that the Customer Experience Improvement Program has been disabled !-->
<component name="Microsoft-Windows-SQMApi" 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">
<CEIPEnabled>0</CEIPEnabled>
</component>
<!-- This part specifies whether System Restore should be disabled. It is enabled in this answerfile !-->
<component name="Microsoft-Windows-SystemRestore-Main" 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">
<DisableSR>0</DisableSR>
</component>
<!-- This part specifies whether Windows Defender should be disabled. As I don't use Windows Defender (actively, at least), it has been set to disabled !-->
<component name="Security-Malware-Windows-Defender" 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">
<DisableAntiSpyware>true</DisableAntiSpyware>
</component>
<!-- This part specifies that the AutoActivation feature is skipped !-->
<component name="Microsoft-Windows-Security-Licensing-SLC-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>
</settings>

<!-- This part specifies the source of the offlineImage file. Do not change this. !-->
<cpi:offlineImage cpi:source="wim:./SOURCES/install.wim#Windows Vista ULTIMATE" xmlns:cpi="urn:schemas-microsoft-com:cpi" />

</unattend>

Anyone who can help?

Link to comment
Share on other sites


I have now also tried with:

<SkipMachineOobe>False</...>

and

<SkipMachineOobe> deleted

and

<SkipUserOobe>False</..>

All to no avail...

It keeps asking me for a user, a network location and timezone...

I am now going to try it by creating 2 users: 1 admin and 1 "normal" account, and having it login with the admin account.

No clue if that is gonna work, no chance to try it until tonight.

Any thoughts, tips, etc are very very very and more than welcome.

Link to comment
Share on other sites

Also tried it by both adding a user and an administrator.

Also to no avail...

I have found multiple thread on here and on the internet that describe the same problem, but none seem to provide a proper solution...

I really really hope someone can help me.

Regards,

Ben

Link to comment
Share on other sites

How are you producing your xml? Are you checking it, validating it with the wsim? Looking through your xml appears to have all the necessary fields. Just on the Timezone issue you have a quick review of my xml have specified timezone/location etc four times in total pe,audit, specialize & oobe.

The network problem is overcome with this reg entry.

<SynchronousCommand wcm:action="add">

<Order>5</Order>

<Description>Block_ Network </Description>

<CommandLine>cmd /c reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\NewNetworks" /v NetworkList /t REG_MULTI_SZ /d "" /f</CommandLine>

</SynchronousCommand>

The wsim has a great built in help files recheck your xml.

Edited by MAVERICKS CHOICE
Link to comment
Share on other sites

My XML has been created partly by the WSIM, partly by the online XML creator, and partly by stuff that I have found over here.

The XML checks out in WSIM, only "error" it gives is that "SkipMachineOOBE" is deprecated.

In which audit do you have the timezone stuff? Audituser or auditsystem?

What does that command do exactly? And in which section do I put it?

Thanks for the help :)

Edited by Ben.Hahlen
Link to comment
Share on other sites

Tried it by adapting my XML based on the generated on from vLite, but still no success...

Next step will be to strip my XML and try to build it up from scratch... It's gonna take a long long time... :S

My question now is: why does Microsoft document stuff that does not work?

Link to comment
Share on other sites

Never mind...

I found out what the problem is:

If you install from a OEM dvd, then it has OOBE "built in", so it runs regardless of what you set in your XML.

With a "normal" DVD it runs without a hitch.

Thanks for the help everyone.

Link to comment
Share on other sites

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