Managing Disks from the Command Prompt

To use the Diskpart command-line tool, start by running Cmd.exe with elevated privileges. You can do that by opening the Start menu and choosing All Programs, Accessories. In the Accessories submenu, right-click Command Prompt, choose Run As Administrator, and then reply to the UAC prompt.

Note

For more about the Command Prompt, see Appendix B.

When you run the Diskpart command, it opens a console window and dumps you at the DISKPART> prompt. If you type help and press Enter, you see a screen that lists all available commands, like the one shown here:

Managing Disks from the Command Prompt

Because Diskpart can do everything that the Disk Management ...

Get Windows Vista™ Inside Out now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.