Autounattend.xml file
-
Saturday, May 26, 2012 10:36 AM
Hey i have the following script in my answer file, but i do not understand that when i run it in a virtual software like virtual box, by booting it with iso image of windows 7 ultimate and then i put this usb with it. It by passes everything except it stops at the disk configuration. And i dont understand what is wrong and why it shows the user interface in the setup where i have to make partition manually and then i tell it to install in a specific partition and from there it goes on itself. So problem is at the disk configuration part. I also wanna know that when the desktop comes it starts sysprep. I dont want sysprep to start, instead i want to put all the information of sysprep in the answer file, i just want to put the dvd with answer file usb and go away and when i return i should get the desktop ready, no sysprep and all. How can i do that. Please someone help me here. I am using ultimate 32 bit and performing this exercise of virtual box software.
Thank You. Waiting. Guys help me out please. I am also pasting my script
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="oobeSystem">
<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">
<Reseal>
<Mode>Audit</Mode>
<ForceShutdownNow>false</ForceShutdownNow>
</Reseal>
</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">
<BluetoothTaskbarIconEnabled>true</BluetoothTaskbarIconEnabled>
<DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
<DoNotCleanTaskBar>true</DoNotCleanTaskBar>
<RegisteredOwner>Microsoft</RegisteredOwner>
<ShowWindowsLive>true</ShowWindowsLive>
<TimeZone>EST</TimeZone>
<OOBE>
<HideEULAPage>true</HideEULAPage>
<ProtectYourPC>3</ProtectYourPC>
<NetworkLocation>Work</NetworkLocation>
</OOBE>
</component>
</settings>
<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">
<InputLocale>en-US</InputLocale>
<SystemLocale>en-US</SystemLocale>
<UILanguage>en-US</UILanguage>
<UserLocale>en-US</UserLocale>
<UILanguageFallback>en-US</UILanguageFallback>
<SetupUILanguage>
<UILanguage>en-US</UILanguage>
</SetupUILanguage>
</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">
<EnableFirewall>true</EnableFirewall>
<EnableNetwork>true</EnableNetwork>
<LogPath>C:\logfiles</LogPath>
<Restart>Restart</Restart>
<UseConfigurationSet>true</UseConfigurationSet>
<ImageInstall>
<OSImage>
<InstallTo>
<DiskID>0</DiskID>
<PartitionID>1</PartitionID>
</InstallTo>
<InstallToAvailablePartition>true</InstallToAvailablePartition>
<WillShowUI>OnError</WillShowUI>
</OSImage>
</ImageInstall>
<UserData>
<ProductKey>
<WillShowUI>OnError</WillShowUI>
<Key>mhfpt-8c8m2-v9488-fgm44-2c9t3</Key>
</ProductKey>
<AcceptEula>true</AcceptEula>
<FullName>Fahad Javed</FullName>
<Organization>Gunj Glass</Organization>
</UserData>
<DiskConfiguration>
<WillShowUI>OnError</WillShowUI>
<Disk wcm:action="add">
<ModifyPartitions>
<ModifyPartition wcm:action="modify">
<Active>true</Active>
<Extend>false</Extend>
<Format>NTFS</Format>
<Label>Windows</Label>
<Letter>C</Letter>
<Order>1</Order>
<PartitionID>1</PartitionID>
</ModifyPartition>
</ModifyPartitions>
<CreatePartitions>
<CreatePartition wcm:action="add">
<Extend>true</Extend>
<Order>1</Order>
<Type>Primary</Type>
</CreatePartition>
</CreatePartitions>
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
</Disk>
</DiskConfiguration>
</component>
</settings>
<cpi:offlineImage cpi:source="wim:c:/my%20images/install.wim#Windows 7 ULTIMATE" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>
- Changed Type Niki HanMicrosoft Contingent Staff, Moderator Wednesday, June 06, 2012 1:38 AM
All Replies
-
Saturday, May 26, 2012 4:44 PM
Hi Muhammad
We once had some problem with primary partition and size declaration.
This is the DiskConfiguration section that finally worked for us:
<Disk>
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
<CreatePartitions><CreatePartition>
<Order>1</Order>
<Type>Primary</Type>
<Size>100</Size>
</CreatePartition><CreatePartition>
<Order>2</Order>
<Type>Primary</Type>
<Size>50000</Size>
</CreatePartition><CreatePartition>
<Order>3</Order>
<Type>Primary</Type>
<Size>50000</Size>
</CreatePartition></CreatePartitions>
<ModifyPartitions><ModifyPartition>
<Order>1</Order>
<PartitionID>1</PartitionID>
<Label>System</Label>
<Format>NTFS</Format>
<Active>true</Active>
</ModifyPartition><ModifyPartition>
<Order>2</Order>
<PartitionID>2</PartitionID>
<Letter>C</Letter>
<Label>WINDOWS</Label>
<Format>NTFS</Format>
</ModifyPartition><ModifyPartition>
<Order>3</Order>
<PartitionID>3</PartitionID>
<Letter>D</Letter>
<Label>DATA</Label>
<Format>NTFS</Format>
</ModifyPartition></ModifyPartitions>
</Disk>
lg
Marcello
- Edited by Marcello Rungi Saturday, May 26, 2012 6:23 PM
-
Saturday, May 26, 2012 5:29 PM
Hey Marcello, Thanks for replying but i still do not understand that what is the mistake in my answer file. I am doing everything according to rules. Whats my mistake. And also if you can send me the settings in picture format because this coding is difficult to understand as i am not a programmer or developer.
Thank You
Fahad Javed
-
Saturday, May 26, 2012 6:19 PM
It's a while ago I've created the xml file. - So I just can guess...
I think your code is missing the system reserved partition (100 MB) for OS setup.
Analyze my code: You will find a partiton with 100MB (no drive letter) and two partitions with 50GB (drive letter C and D).lg
Marcello -
Sunday, May 27, 2012 7:57 AM
Well Marcello, i did put the system reserved partition as well still such an error happens that i cannot pass the disk configuration. Don't you think that the reason can be that i should try it on a base operating system rather then in a virtual environment like i am using Virtual Box software from oracle, maybe that is causing the problem
Fahad Javed
-
Sunday, May 27, 2012 9:08 AM
Well, although I have some little experience with virtual environments I can't be of help here. Sorry.
Our xml worked... but it was an ordinary setup from scratch.
Maybe there's a conflict with your partition IDs or there are some limitations on the host system.
lg
Marcello -
Wednesday, May 30, 2012 11:28 AM
I'm attaching my setup answer file for your reference. I have tested in VMware Workstation, I think the platform(VirtualBox, VMware, pr physical machine) should not affect the answer file settings.
<?xml version="1.0" encoding="utf-8" ?> - <unattend xmlns="urn:schemas-microsoft-com:unattend"> - <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"> - <DiskConfiguration> - <Disk wcm:action="add"> - <CreatePartitions> - <CreatePartition wcm:action="add"> <Order>1</Order> <Size>30000</Size> <Type>Primary</Type> </CreatePartition> </CreatePartitions> - <ModifyPartitions> - <ModifyPartition wcm:action="add"> <Active>true</Active> <Extend>false</Extend> <Format>NTFS</Format> <Label>OS_Install</Label> <Letter>C</Letter> <Order>1</Order> <PartitionID>1</PartitionID> </ModifyPartition> </ModifyPartitions> <DiskID>0</DiskID> <WillWipeDisk>true</WillWipeDisk> </Disk> <WillShowUI>OnError</WillShowUI> </DiskConfiguration> - <ImageInstall> - <OSImage> - <InstallTo> <DiskID>0</DiskID> <PartitionID>1</PartitionID> </InstallTo> <WillShowUI>OnError</WillShowUI> </OSImage> </ImageInstall> - <UserData> <AcceptEula>true</AcceptEula> - <ProductKey> <Key>33PXH-7Y6KF-2VJC9-XBBR8-HVTHH</Key> <WillShowUI>OnError</WillShowUI> </ProductKey> </UserData> </component> - <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> <InputLocale>en-us</InputLocale> <SystemLocale>en-us</SystemLocale> <UILanguage>en-us</UILanguage> <UserLocale>en-us</UserLocale> </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"> - <OEMInformation> <HelpCustomized>false</HelpCustomized> <Manufacturer>Zero.com</Manufacturer> <SupportPhone>0000</SupportPhone> <SupportURL>www.microsoft.com</SupportURL> <SupportHours>0x24</SupportHours> </OEMInformation> </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> <ProtectYourPC>1</ProtectYourPC> <NetworkLocation>Work</NetworkLocation> </OOBE> </component> - <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"> - <Reseal> <Mode>Audit</Mode> </Reseal> </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"> - <AutoLogon> <Enabled>true</Enabled> <LogonCount>1</LogonCount> <Username>Administrator</Username> </AutoLogon> </component> </settings> <cpi:offlineImage cpi:source="catalog:e:/sources/install_windows 7 enterprise.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" /> </unattend>
Thanks
ZeroPlease remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
- Marked As Answer by Niki HanMicrosoft Contingent Staff, Moderator Wednesday, June 06, 2012 1:38 AM
-
Wednesday, May 30, 2012 6:22 PM
Hey guys, can u send me the autounattend.xml on this id, iobm@live.com please rather than providing me the code for the file as i am unable to understand it. So please send the actual file that i can just put in the usb and automate the windows process. Thank You.
Fahad Javed
-
Wednesday, May 30, 2012 7:41 PM
Can't send you the complete file cause I do not have it anymore. We created the answer file with Windows System Image Manager but that was a little while ago.
I've just documented the DiskConfiguration section that finally worked for us; because we too encountered some difficulties.
lg
Marcello- Edited by Marcello Rungi Thursday, May 31, 2012 8:36 PM
-
Thursday, May 31, 2012 2:01 AM
I have sent my answer file to iobm@live.com, just for your reference.
Note: You can check the disk size part in the answer file to fit your own settings.Also I have found the one I read when I first touched setup answer file, I think it would be helpful to you or others who want to learn this:
Step-by-Step: Basic Windows Deployment for IT Professionals
http://technet.microsoft.com/en-us/library/dd349348(v=ws.10).aspxThanks.
Thanks
ZeroPlease remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

