I'm trying to automate WDS image deployment. I put this script together that seems to work very nicely on computers with hard drives less than 100 GB. On drives that are bigger than 100 GB or so it will only format the first 30 GB, install there and leaves the rest of the hard drive unpartitioned and untouched. I want to preserve the OEM recovery partition, wipe out everything on the rest of the hard drive and write my image there. Here's my script:
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
I'm trying to automate WDS image deployment. I put this script together that seems to work very nicely on computers with hard drives less than 100 GB. On drives that are bigger than 100 GB or so it will only format the first 30 GB, install there and leaves the rest of the hard drive unpartitioned and untouched. I want to preserve the OEM recovery partition, wipe out everything on the rest of the hard drive and write my image there. Here's my script:
<?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">'>http://schemas.microsoft.com/WMIConfig/2002/State">
<DiskConfiguration>
<WillShowUI>OnError</WillShowUI>
<Disk wcm:action="add">
<ModifyPartitions>
<ModifyPartition wcm:action="add">
<Active>true</Active>
<Extend>false</Extend>
<Format>NTFS</Format>
<Label>Local Disk</Label>
<Letter>C</Letter>
<Order>1</Order>
<PartitionID>1</PartitionID>
</ModifyPartition>
</ModifyPartitions>
<DiskID>0</DiskID>
<WillWipeDisk>false</WillWipeDisk>
</Disk>
</DiskConfiguration>
<WindowsDeploymentServices>
<Login>
<Credentials>
<Domain>www.windows-noob.com</Domain>
<Password>netsys</Password>
<Username>administrator</Username>
</Credentials>
</Login>
<ImageSelection>
<InstallTo>
<DiskID>0</DiskID>
<PartitionID>1</PartitionID>
</InstallTo>
</ImageSelection>
</WindowsDeploymentServices>
</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></InputLocale>
<SystemLocale></SystemLocale>
<UILanguage>en-US</UILanguage>
<UserLocale></UserLocale>
</component>
</settings>
</unattend>
Share this post
Link to post
Share on other sites