Jump to content

Unattend.xml install error


Recommended Posts

Hi Everyone!

I just created a xml unattend file to deploy our windows 7 64 bits computers, the sysprep file validates fine without any errors nor warnings using Windows System Image Manager.

However when i deploy my image, i get the following error:

Windows could not parse or process the unattend answer file for pass [specialize]. A component or setting specified in the answer file does not exist.

I attach the xml file to this post and i hope some of you could help with this as i am getting frustrated reimaging without luck..

Thank you.

Here is the specialize section

<settings pass="specialize">
<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>en-us</InputLocale>
<SystemLocale>en-us</SystemLocale>
<UILanguage>en-us</UILanguage>
<UILanguageFallback>en-us</UILanguageFallback>
<UserLocale>en-us</UserLocale>
</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-Deployment" 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">
<RunSynchronous>
<RunSynchronousCommand wcm:action="modify">
<Path>net user administrator /active:yes</Path>
<Order>1</Order>
</RunSynchronousCommand>
</RunSynchronous>
</component>
</settings>

Unattend.xml

Link to comment
Share on other sites


Hello :rolleyes:

Maybe there is an error here:

<InputLocale>0409:00000409</InputLocale>

Input_locale can be one of two values:

To use the default input locale for a language, you can specify the language identifier. For example, to use the default keyboard for English (United States) that corresponds with the QWERTY keyboard, you can specify the value en-US.

Specify the locale ID and keyboard layout hexadecimal values. For example, for en-US, use 0409:00000409. The first value (0409) is the locale ID that represents the input language and the second value (00000409) is the keyboard layout value.

So en-US should be OK...

Link to comment
Share on other sites

Well,...i tried your suggestion and it worked! Thanks

I have 2 remaining issues with my sysprep.

1- After sysprep finishes and the computer reboots, i have to click next for locales and time Zone,...i dont get it since it is set in my sysprep

2- my drivers path option doesnt seem to work (i put the correct path and the local admin credentials) but still the device manager shows the devices without drivers

<DriverPaths>
<PathAndCredentials wcm:action="add" wcm:keyValue="1">
<Credentials>
<Domain></Domain>
<Password>password</Password>
<Username>Administrator</Username>
</Credentials>
<Path>C:\Drivers\1ChipSet</Path>
</PathAndCredentials>
<PathAndCredentials wcm:action="add" wcm:keyValue="2">
<Credentials>
<Domain></Domain>
<Password>password</Password>
<Username>Administrator</Username>
</Credentials>
<Path>C:\Drivers\2Net</Path>
</PathAndCredentials>
<PathAndCredentials wcm:action="add" wcm:keyValue="3">
<Credentials>
<Domain></Domain>
<Password>password</Password>
<Username>Administrator</Username>
</Credentials>
<Path>C:\Drivers\3Display</Path>
</PathAndCredentials>
<PathAndCredentials wcm:action="add" wcm:keyValue="4">
<Credentials>
<Password>password</Password>
<Username>Administrator</Username>
</Credentials>
<Path>C:\Drivers\4Video</Path>
</PathAndCredentials>
<PathAndCredentials wcm:action="add" wcm:keyValue="5">
<Credentials>
<Password>Dwerge!1</Password>
<Username>Administrator</Username>
</Credentials>
<Path>C:\Drivers\5Audio</Path>
</PathAndCredentials>
<PathAndCredentials wcm:action="add" wcm:keyValue="6">
<Credentials>
<Password>password</Password>
<Username>Administrator</Username>
</Credentials>
<Path>C:\Drivers\6Modem</Path>
</PathAndCredentials>
<PathAndCredentials wcm:action="add" wcm:keyValue="7">
<Credentials>
<Password>password</Password>
<Username>Administrator</Username>
</Credentials>
<Path>C:\Drivers\7Misc</Path>
</PathAndCredentials>
</DriverPaths>

Link to comment
Share on other sites

1- After sysprep finishes and the computer reboots, i have to click next for locales and time Zone,...i dont get it since it is set in my sysprep

Hello

You can add the values for locales and Time zone(take care to choose for amd64, here is an example for x86!)


<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>en-US</UILanguage>
</SetupUILanguage>


<settings pass="oobeSystem">
<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">
<SystemLocale>en-US</SystemLocale>
<UILanguage>en-US</UILanguage>
<UserLocale>0409:00000409</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">
<Display>
<ColorDepth>32</ColorDepth>
<HorizontalResolution>1280</HorizontalResolution>
<VerticalResolution>1024</VerticalResolution>
</Display>
<RegisteredOrganization>Se7en_UA</RegisteredOrganization>
<RegisteredOwner>myselfidem</RegisteredOwner>
<TimeZone>Your Time Zone here</TimeZone>

For the drivers I need to make some search!

Link to comment
Share on other sites

I know it has something to do with audit mode.

I have installed Win7 when the computer restarts i press ctl shift F3 and the computer reboots in Audit mode, then i sysprep after making my customization running sysprep /oobe /generalize /unattend:Unattend.xml /shutdown

Should i also use the /audit switch?

Link to comment
Share on other sites

Should i also use the /audit switch?

You can see some help inside: Unattended Windows Setup reference for Windows 7.chm include with WAIK for Windows 7

Extract:

Using a Script to Deploy a Windows Image

In this scenario, you boot the computer with a master image on which the sysprep /generalize /shutdown /oobe command was run and the image was captured. You start with a master image, Windows PE and the ImageX tool.

Apply the master image to a computer by using the ImageX command with the /apply option.

Boot the computer with the master image. Windows starts.

The specialize configuration pass runs. Settings in the <settings pass="specialize"> section of the answer file are processed.

The computer restarts.

The oobeSystem configuration pass runs. Settings in the <settings pass="oobeSystem"> section of the answer file are processed.

Windows Welcome starts and you can begin using your computer.

To boot Windows to audit mode

In this scenario, you boot a Windows image that is configured to start in audit mode. Audit mode is useful for adding custom applications, drivers, and other updates to a master image. You can configure a Windows image to boot the computer to audit mode by configuring the following setting in an answer file: Microsoft-Windows-Deployment | Reseal | Mode=Audit or, run the Sysprep command with the /audit option.

Configure the Windows image to boot the computer to audit mode. In this scenario, run the sysprep command with the /audit /reboot options.

Windows reboots the computer.

The auditSystem configuration pass runs. Settings in the <settings pass="auditSystem"> section of the answer file are processed.

The Built-in administrator account is enabled.

The auditUser configuration pass runs. Settings in the <settings pass="auditUser"> section of the answer file are processed.

The desktop appears.

The next time you reboot the computer, it will boot to audit mode again.

To configure the computer to boot to Windows Welcome, you must use the sysprep command with the /oobe option, or configure the Microsoft-Windows-Deployment | Reseal | Mode setting to oobe in an answer file.

There is two scenarios.

You can have more help here:

I hope that will help you.

Edited by myselfidem
Link to comment
Share on other sites

Hello

Here is an example made by the Se7en_UA6.2.9.exe (XML Editor), made by maxXPsoft, when you choose AuditUser mode:

Inside pass specialize


<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">
<AutoLogon>
<Enabled>true</Enabled>
<LogonCount>2</LogonCount>
<Username>myselfidem</Username>
</AutoLogon>
<Display>
<ColorDepth>32</ColorDepth>
<HorizontalResolution>1280</HorizontalResolution>
<VerticalResolution>1024</VerticalResolution>
</Display>
<UserAccounts>
<LocalAccounts>
<LocalAccount wcm:action="add">
<Password>
<Value></Value>
<PlainText>true</PlainText>
</Password>
<Group>Administrateurs</Group>
<Name>myselfidem</Name>
</LocalAccount>
</LocalAccounts>
</UserAccounts>
</component>
</settings>
<settings pass="auditUser">
<component name="Microsoft-Windows-Deployment" 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">
<RunSynchronous>
<RunSynchronousCommand wcm:action="add">
<Order>400</Order>
<Path>cmd /C start /wait %systemdrive%\Install\AuditUser.cmd</Path>
</RunSynchronousCommand>
</RunSynchronous>
</component>

And a file OOBEAudit.xml is created for the Audit mode inside:

Cleanup.cmd

FOR %%d IN (c: d: e: f: g: h: i: j: k: l: m: n: o: p: q: r: s: t: u: v: w: x: y: z:) DO IF EXIST %%d\OOBEAudit.xml SET DVDroot=%%d

Cls

%windir%\system32\sysprep\sysprep.exe /oobe /reboot /quiet /unattend:%DVDroot%\OOBEAudit.xml

OOBEAudit.xml


<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="oobeSystem">
<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">
<SystemLocale>fr-FR</SystemLocale>
<UILanguage>fr-FR</UILanguage>
<UserLocale>100c:0000100c</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">
<Display>
<ColorDepth>32</ColorDepth>
<HorizontalResolution>1280</HorizontalResolution>
<VerticalResolution>1024</VerticalResolution>
</Display>
<RegisteredOrganization>Se7en_UA</RegisteredOrganization>
<RegisteredOwner>myselfidem</RegisteredOwner>
<TimeZone>W. Europe Standard Time</TimeZone>
<AutoLogon>
<Enabled>true</Enabled>
<LogonCount>9999999</LogonCount>
<Username>Administrateur</Username>
<Password>
<Value>xxxxxx</Value>
<PlainText>true</PlainText>
</Password>
</AutoLogon>
<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<Order>1</Order>
<Description>Running FirstLog.cmd</Description>
<CommandLine>cmd /C start /wait %systemdrive%\Install\FirstLog.cmd</CommandLine>
</SynchronousCommand>
</FirstLogonCommands>
<OEMInformation>
<Logo>%WINDIR%\System32\oemlogo.bmp</Logo>
<Manufacturer>Se7en_UA</Manufacturer>
<Model>Unattended Seven</Model>
<SupportHours>Anytime, visit the Forums</SupportHours>
<SupportPhone>BR549</SupportPhone>
<SupportURL>http://people.consolidated.net/veeger/</SupportURL>
</OEMInformation>
<OOBE>
<HideEULAPage>true</HideEULAPage>
<NetworkLocation>Home</NetworkLocation>
<ProtectYourPC>1</ProtectYourPC>
</OOBE>
<UserAccounts>
<LocalAccounts>
<LocalAccount wcm:action="add">
<Password>
<PlainText>true</PlainText>
<Value>xxxxx</Value>
</Password>
<Group>Administrators</Group>
<DisplayName>myselfidem</DisplayName>
<Name>myselfidem</Name>
</LocalAccount>
</LocalAccounts>
</UserAccounts>
<VisualEffects>
<FontSmoothing>ClearType</FontSmoothing>
</VisualEffects>
</component>
</settings>
</unattend>

There is two .xml files at the root of the DVD: AutoUnattend.xml and OOBEAudit.xml

Maybe that can help you.

Thanks very much to maxXPsoft for his nice and very good software! :thumbup

Edited by myselfidem
Link to comment
Share on other sites

@Alroze

Have you created the folders $OEM$?

More help here for audit mode

http://technet.microsoft.com/en-us/library/dd744512(WS.10).aspx#UsingAnswerFilesWithSysprep

http://technet.microsoft.com/en-us/library/dd799305(WS.10).aspx

http://technet.microsoft.com/en-us/library/dd744501(WS.10).aspx

I hope that will help you

Edited by myselfidem
Link to comment
Share on other sites

Hello

For the Drivers you can try this:


<settings pass="auditSystem">
<component name="Microsoft-Windows-PnpCustomizationsNonWinPE" 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">
<DriverPaths>
<PathAndCredentials wcm:action="add" wcm:keyValue="1">
<Credentials>
<Domain></Domain>
<Password>password</Password>
<Username>Administrator</Username>
</Credentials>
<Path>\Drivers</Path>
</PathAndCredentials>

The folder Drivers is at the root of your partition C:\

That means the folder with all your drivers (with subfolders) is inside: "sources\$OEM$\$1\Drivers".

I hope that will help you!

Edited by myselfidem
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...