Q. How can I use Windows Server 2003 Automated Deployment Services (ADS) to create a partition that uses all remaining disk space on a volume?

A. You create a partition by using the Bmpart utility within an ADS task sequence. The operation passes the partition's size to the Bmpart utility as a command parameter. However, if you want to create a partition that uses the remaining free space, specify the -c switch and no size parameter, as the following sample portion from an ADS task sequence shows:

&#160;&lt;task description="Partition Remainder of Disk" doesReboot="false"&gt;<br>
&#160;&#160; &lt;command&gt;/BMONITOR/bmpart.exe&lt;/command&gt;<br>
&#160;&#160; &lt;parameters&gt;<br>
&#160;&#160;&#160;&#160;&#160; 
&lt;parameter&gt;\device\harddisk0&lt;/parameter&gt;<br>
&#160;&#160;&#160;&#160;&#160; &lt;parameter&gt;-init&lt;/parameter&gt;<br>
&#160;&#160;&#160;&#160;&#160; &lt;parameter&gt;-c&lt;/parameter&gt;<br>
&#160;&#160; &lt;/parameters&gt;<br>
&lt;/task&gt;
Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish