Managing Disks
Disk Management Tools
DiskPart
Windows 7 also includes a command-line utility called diskpart, which you can use as a command-line alternative to the Disk Management utility. You can view all the options associated with the diskpart utility by typing diskpart at a command prompt, and then typing ? at the diskpart prompt.
- DiskPart is a command-line tool that allows disk and volume operations to be performed from a text-based screen interactively or from within a scripted file.
- DiskPart operations are driven by a sequence of commands. Each command must have a specific object to focus its action on.
- The commands can be executed as part of a scheduled task or automated response on the local computer or remotely on another computer.
http://support.microsoft.com/kb/300415.