Jump to content

Adding settings to Autounattend.xml with WSIM fails


ajua

Recommended Posts

I finished testing vLite and all worked out.

I wanted to add more settings to Autounattend.xml using WSIM so i tried to open the Autounattend.xml generated by vLite but i got this error:

post-52266-1193865174_thumb.png

I opened install.wim to start from scratch and everything was fine. then i added ComputerName to specialize pass, fine.

Then i added AutoSkipActivation, error. Deleted the last entry and added other settings, error.

I opened the Autounattend.xml generated by vLite, clicked OK on the error dialog and deleted AutoSkipActivation and i was able to save the file or add other stuff to other passes.

My ComputerName has a single word name without any special characters or symbols. I read here in the vLite forum that ComputerName had issues with spaces or something. I also tried removing ComputerName and only added AutoSkipActivation to specialize but failed again.

any help on this one? thanks.

Link to comment
Share on other sites


here it is. is just like vLite generated and then i tried to open it with WSYM to add more settings.

i did not make any modifications to the windows images after vLite finished rebuilding it.

<?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="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>es-ES</UILanguage>
</SetupUILanguage>
<InputLocale>0001042f</InputLocale>
<UserLocale>es-MX</UserLocale>
<UILanguage>es-ES</UILanguage>
<SystemLocale>es-MX</SystemLocale>
</component>
<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>
<ProductKey>
<Key>XXXXX-XXXXX-XXXXX-XXXXX-XXXXX</Key>
<WillShowUI>OnError</WillShowUI>
</ProductKey>
<Organization>Organization</Organization>
<FullName>FullName</FullName>
<AcceptEula>true</AcceptEula>
</UserData>
</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>Home</NetworkLocation>
<ProtectYourPC>1</ProtectYourPC>
</OOBE>
<TimeZone>Central Standard Time (Mexico)</TimeZone>
</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>Duoata</ComputerName>
</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:D:/VistaUA/DVD/sources/install.wim#Windows Vista (vLite) ULTIMATE" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

thanks.

Edited by elajua
Link to comment
Share on other sites

It is just missing

</unattend>

On the very end.

There is no way vLite can do that since the XML synthax is automated. If you manage to repeat it every time (the missing </unattend>) let me know how, by using clean vLite installation.

Thx.

Link to comment
Share on other sites

sorry, was mistake when copy-pasting into the post.

i have tested the xml in a real computer and it does work well, but i dont have a clue why WSYM doesnt let me add components to specialize.

after deleting SkipAutoActivation i just added DisableSR to the file and it did let me save it. i tried disabe windows defender and i got the same error again.

Link to comment
Share on other sites

I tried and it works fine for me.

Choose WIM, generate catalog, open XML, answer Yes.

Then on the left choose component, pull it on the appropriate section, then configure.

Can you tell me exactly which fails for you? Maybe it's in combination with something removed so attach your preset as well.

Link to comment
Share on other sites

There is nothing wrong with your autounattend.xml file. It is a problem with WIM.

I also have this problem. I bet you, the image your using within WIM is a vlited one, and you've had some hotfixes added to it... am I right?

Link to comment
Share on other sites

I tried and it works fine for me.

Choose WIM, generate catalog, open XML, answer Yes.

Then on the left choose component, pull it on the appropriate section, then configure.

Can you tell me exactly which fails for you? Maybe it's in combination with something removed so attach your preset as well.

as the error says enumeration fails i think WSIM is expecting to find all versions of vista but i removed them and let only the ultimate version.

i didnt remove anything, i just integrated hotfixes and spanish language pack.

Link to comment
Share on other sites

There is nothing wrong with your autounattend.xml file. It is a problem with WIM.

I also have this problem. I bet you, the image your using within WIM is a vlited one, and you've had some hotfixes added to it... am I right?

the image vlited thats why i posted here. i removed all versions of vista except ultimate and just integrated hotfixes and spanish language pack.

i noticed in the sources folder that after the initial catalogin with WSIM there is Windows Vista (vLite) ULTIMATE.cfg and vLite didnt generated this file, it is using Windows Vista ULTIMATE.cfg so i think the error has to do with either the name of the image that vLite changes and the versions removed.

Link to comment
Share on other sites

If you actually researched this yourself before posting here you would have relealised what is wrong and why.

This is a "known" problem that usually is the result of adding either

KB937143, KB933566, or KB931099 updates. Each of these results in a

second module w/a different version # added to the WIM file. The

first two are IE related, the last one is a Windows Defender update.

There is already a fix being worked on by Windows SE (Sustaining

Engineering). When the BDD Workbench attempts to import the WIM (or

WSIM attempts to create a catalog), these duplicate components

generate "versioned" entries in the catalog and resulting unattend.xml

that cause the failure.

The current workaround is to either avoid installing these updates

until post deployment or to ADD the required versioned component

settings to your unattend.xml file (you will see the two IE components

in the left lower section of WSIM.

Link to comment
Share on other sites

Thanks for the information.

Please don't come to me with the "if you searched for this before..." thing. I really try searching for answer before asking as i like to do things by myself. You sounded a little impolite, that's all.

I googled and searched this forum about enumeration problems with the WSIM catalog function and didn't found this exact problem.

Off the three updates im just integrating KB931099 so i will make another fresh image without this one and see if WSIM is working fine after vLite finishes.

Link to comment
Share on other sites

Sorry didn't mean to make it sound impolite, but when i searched it was on the first page of the search engine :D

Glad your problem is now solved.

don't worry about it.

Sadly, the problem is still there. Grabbed a fresh install.wim, added hotfixes (none of those three posted by zedox), added spanish language pack and saved only the Ultimate version. Tried to open the Autounattend.xml file with WSIM. The error was the same: Enumeration Failed.

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