Jump to content


chinnp

Help automating WDS

Recommended Posts

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...