Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Autounattend.xml doesn't work properly

28 Nov 2010   #11
HITData

Windows 7 Professional 32-bit
 
 

Hi, I have a link to the file in my first post.

//Henrik


My System SpecsSystem Spec
.
28 Nov 2010   #12
Kari

 

My bad.
My System SpecsSystem Spec
28 Nov 2010   #13
Kari

 

Still, I can not see the tags when clicking your link. this is what I see:

Audit1HometrueTemp accountTemp accountUsersTempAccountsv-SEsv-SEsv-SEsv-SEsv-SEen-US1200Primarytrue2PrimarytrueNTFSSystem11NTFSWindows220trueOnError02OnErrorfalseOnErrortrueEnableAdm in1cmd /c net user Administrator /active:yesUnfilterAdministratorToken2cmd /c reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v FilterAdministratorToken /t REG_DWORD /d 0 /fxxxfalsexxxxxxxxxxxx

I would like to read, see it like this: example:

Code:
 
<?xml version="1.0" encoding="utf-8"?> 
<unattend xmlns="urn:schemas-microsoft-com:unattend"> 
<settings pass="oobeSystem"> 
<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"> 
<FolderLocations> 
<ProfilesDirectory>d:\Users</ProfilesDirectory> 
<ProgramData>d:\ProgramData</ProgramData> 
</FolderLocations> 
</component> 
</settings> 
<cpi:offlineImage cpi:source="wim:E:/sources/install.wim#Windows 7 ULTIMATE" xmlns:cpi="urn:schemas-microsoft-com:cpi" /> 
</unattend>
Kari
My System SpecsSystem Spec
.

28 Nov 2010   #14
HITData

Windows 7 Professional 32-bit
 
 

Here's the code:

Code:
 
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="oobeSystem">
        <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">
            <Reseal>
                <Mode>Audit</Mode>
            </Reseal>
        </component>
        <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">
            <OOBE>
                <ProtectYourPC>1</ProtectYourPC>
                <NetworkLocation>Home</NetworkLocation>
            </OOBE>
            <UserAccounts>
                <AdministratorPassword>
                    <Value></Value>
                    <PlainText>true</PlainText>
                </AdministratorPassword>
                <LocalAccounts>
                    <LocalAccount wcm:action="add">
                        <Description>Temp account</Description>
                        <DisplayName>Temp account</DisplayName>
                        <Group>Users</Group>
                        <Name>TempAccount</Name>
                    </LocalAccount>
                </LocalAccounts>
            </UserAccounts>
        </component>
    </settings>
    <settings pass="windowsPE">
        <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>sv-SE</UILanguage>
            </SetupUILanguage>
            <InputLocale>sv-SE</InputLocale>
            <SystemLocale>sv-SE</SystemLocale>
            <UILanguage>sv-SE</UILanguage>
            <UserLocale>sv-SE</UserLocale>
            <UILanguageFallback>en-US</UILanguageFallback>
        </component>
        <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">
            <DiskConfiguration>
                <Disk wcm:action="add">
                    <CreatePartitions>
                        <CreatePartition wcm:action="add">
                            <Order>1</Order>
                            <Size>200</Size>
                            <Type>Primary</Type>
                        </CreatePartition>
                        <CreatePartition wcm:action="add">
                            <Extend>true</Extend>
                            <Order>2</Order>
                            <Type>Primary</Type>
                        </CreatePartition>
                    </CreatePartitions>
                    <ModifyPartitions>
                        <ModifyPartition wcm:action="add">
                            <Active>true</Active>
                            <Format>NTFS</Format>
                            <Label>System</Label>
                            <Order>1</Order>
                            <PartitionID>1</PartitionID>
                        </ModifyPartition>
                        <ModifyPartition wcm:action="add">
                            <Format>NTFS</Format>
                            <Label>Windows</Label>
                            <Order>2</Order>
                            <PartitionID>2</PartitionID>
                        </ModifyPartition>
                    </ModifyPartitions>
                    <DiskID>0</DiskID>
                    <WillWipeDisk>true</WillWipeDisk>
                </Disk>
                <WillShowUI>OnError</WillShowUI>
            </DiskConfiguration>
            <ImageInstall>
                <OSImage>
                    <InstallTo>
                        <DiskID>0</DiskID>
                        <PartitionID>2</PartitionID>
                    </InstallTo>
                    <WillShowUI>OnError</WillShowUI>
                    <InstallToAvailablePartition>false</InstallToAvailablePartition>
                </OSImage>
            </ImageInstall>
            <UserData>
                <ProductKey>
                    <Key></Key>
                    <WillShowUI>OnError</WillShowUI>
                </ProductKey>
                <AcceptEula>true</AcceptEula>
            </UserData>
        </component>
    </settings>
    <settings pass="specialize">
        <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="add">
                    <Description>EnableAdmin</Description>
                    <Order>1</Order>
                    <Path>cmd /c net user Administrator /active:yes</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Description>UnfilterAdministratorToken</Description>
                    <Order>2</Order>
                    <Path>cmd /c reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v FilterAdministratorToken /t REG_DWORD /d 0 /f</Path>
                </RunSynchronousCommand>
            </RunSynchronous>
        </component>
        <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">
            <OEMInformation>
                <Manufacturer>xxx</Manufacturer>
                <HelpCustomized>false</HelpCustomized>
                <SupportHours>xxx</SupportHours>
                <SupportPhone>xxx</SupportPhone>
                <SupportURL>xxx</SupportURL>
                <Logo>xxx</Logo>
            </OEMInformation>
        </component>
    </settings>
    <cpi:offlineImage cpi:source="catalog:d:/sources/install_windows 7 homepremium.clg#Windows 7 Home Premium" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>
My System SpecsSystem Spec
28 Nov 2010   #15
Kari

 

Thanks. BTW, I'm sure your first link is OK, I just noticed my XML reader does not work...

Anyway, give me a few minutes, I'm reading it through now.

Kari
My System SpecsSystem Spec
28 Nov 2010   #16
HITData

Windows 7 Professional 32-bit
 
 

Thats ok
My System SpecsSystem Spec
28 Nov 2010   #17
pebbly

win 7 ultimate32bit, Win8.1pro wmc 32bit
 
 

HITData, Is the XMLSchema at w3.org out of date ?
My System SpecsSystem Spec
28 Nov 2010   #18
Kari

 

Found only one syntax error, but it might be because that's a place where you have clearly left something out.

Quite in the beginning, Administrative password tags:
Code:
<AdministratorPassword>
<Value/>
<PlainText>
true
</PlainText>
</AdministratorPassword>
I've higlighted the syntax error. If you have <value>password</value> in your original file, then it's OK.

Other than that, all tags are closed as they should. At least I don't see any errors.

Kari
My System SpecsSystem Spec
28 Nov 2010   #19
HITData

Windows 7 Professional 32-bit
 
 

Ok, thanks for looking. The file is working good now after the x86 -> AMD64 swap, I think I can live with three clicks in the beginning of the installation.

Peebly: I don't know, I'm a noob when it comes to programming..

//Henrik
My System SpecsSystem Spec
28 Nov 2010   #20
Kari

 

Pebbly, the schema should be OK. All unattend files working for me, using that.
My System SpecsSystem Spec
Reply

 Autounattend.xml doesn't work properly




Thread Tools




Similar help and support threads
Thread Forum
Windows 7 Search Doesn’t Work Properly – Yet Again!
I realise this subject has just about been done to death, e.g. by Lithium on 07-06-2011, but I just have to let off steam somehow - it really doesn't seem to work! Let me explain. I recently acquired an HP Pavilion dv7 laptop computer, with Windows 7 64-bit Home Premium pre-installed. ...
General Discussion
Microphone doesn't work properly
The microphone is detected, already enabled, but no sound detected. The microphone doesn't have a problem, because it works on other computer which are using XP. I've done troubleshooting, but it couldn't find what the problem is. Please help..
Sound & Audio
5.1 surround doesn't work properly in all apps .
Hi. The strand thing that it's working perfectly in AIMP3 , but when I'm playing a movie in classic media player or YT video, only the center and right speakers are working . The others have this weeird , super low delayed sound , barely Noticeable . This is my motherboard , maybe I've...
Sound & Audio
One of the most useful features in W8 doesn't work properly in CP
Hi there For a lot of people the ability to mount ISO's natively on a REAL (not a Virtual) Machine was a great addition to the basic functionality of Windows. This worked really well on the preview edition of W8 (the one with the sideways fish at longon) but doesn't work properly on a few...
General Discussion
IE8 doesn't work properly after uninstalling updates from IE9
I updated Windows 7 64bit and it installed IE9 64bit. I used to be in IE8 64 or 32bit. I'm not sure. When on IE9 I had so much problems with flash player. So I uninstalled the updates to IE9. Now my IE8 doesn't fully work anymore. I updated Flash player, thinking that was the problem. Some...
Browsers & Mail
IE9 from server doesn't work properly
Hi there When logging on to a service that needs extra logon Information such as supplying password etc IE9 fails. I'm currently in France and have to use the ORANGE France wifi service. IE8 gives me an orange logon screen -- works fine IE9 doesn't present the option -- I just get...
Browsers & Mail


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 09:06.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App