Jump to content

Home

Automating WDS / Win 7 Install


swphreak

Recommended Posts

So I'm trying to automate Windows Deployment Services and Windows 7 installation process for a school project.

 

Right now, I've only gotten to WDSUnattend.xml.

 

I keep getting stuck at "WDS can't parse <DiskConfiguration>" or such. I've tinkered with the wdsunattend.xml file a crapton. I'm out of ideas. I've even tried copying exactly what some tutorials claimed worked. I need another set of eyes to look at the xml file.

 

I used Windows System Image Manager from the Windows Automated Installation Kit to create the XML file.

 

Show spoiler
(hidden content - requires Javascript to show)

<?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="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>en-us</InputLocale>
           <SystemLocale>en-us</SystemLocale>
           <UILanguage>en-us</UILanguage>
           <UILanguageFallback>en-us</UILanguageFallback>
           <UserLocale>en-us</UserLocale>
       </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">
           <WindowsDeploymentServices>
               <Login>
                   <Credentials>
                       <Domain>testing.com</Domain>
                       <Password>password</Password>
                       <Username>testing\deploymentadmin</Username>
                   </Credentials>
               </Login>
               <ImageSelection>
                   <InstallImage>
                       <Filename>winsevcap.wim</Filename>
                       <ImageGroup>ImageGroup1</ImageGroup>
                       <ImageName>winsevcap</ImageName>
                   </InstallImage>
                   <InstallTo>
                       <DiskID>0</DiskID>
                       <PartitionID>1</PartitionID>
                   </InstallTo>
                   <WillShowUI>OnError</WillShowUI>
               </ImageSelection>
           </WindowsDeploymentServices>
           <DiskConfiguration>
               <Disk wcm:action="add">
                   <ModifyPartitions>
                       <ModifyPartition wcm:action="add">
                           <Active>true</Active>
                           <Extend>false</Extend>
                           <Format>NTFS</Format>
                           <Label>OS</Label>
                           <Letter>C</Letter>
                           <Order>1</Order>
                           <PartitionID>1</PartitionID>
                           <TypeID></TypeID>
                       </ModifyPartition>
                   </ModifyPartitions>
                   <DiskID>0</DiskID>
                   <WillWipeDisk>true</WillWipeDisk>
                   <CreatePartitions>
                       <CreatePartition wcm:action="add">
                           <Extend>true</Extend>
                           <Order>1</Order>
                           <Type>Primary</Type>
                       </CreatePartition>
                   </CreatePartitions>
               </Disk>
               <WillShowUI>OnError</WillShowUI>
           </DiskConfiguration>
           <ImageInstall>
               <OSImage>
                   <InstallTo>
                       <DiskID>0</DiskID>
                       <PartitionID>1</PartitionID>
                   </InstallTo>
                   <InstallToAvailablePartition>false</InstallToAvailablePartition>
                   <WillShowUI>OnError</WillShowUI>
               </OSImage>
           </ImageInstall>
       </component>
   </settings>
   <cpi:offlineImage cpi:source="wim:w:/%5Bimages%5D/winsevcap.wim#winsevcap" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

 

I'm trying to install a custom Windows 7 capture on the first partition of the only hard drive. This is on VMware, as I'm only testing this for now. Can't go put this into the project.

 

It looks like the XML file is being used. The credentials and language settings are being used, but it craps out at the Disk Configuration section.

 

Any help is appreciated.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...