How to Open Disk Management From Command Prompt

Execute DISKMGMT.MSC for quick access

A quick way to open the Disk Management utility in any version of Windows is from the Command Prompt. Just type a short command and the Disk Management utility starts instantly.

Disk Management is buried several layers deep in most versions of Windows, so having a faster way to access this super-tool for your hard drives and other storage devices can come in very handy.

Follow these easy steps to start Disk Management from the Command Prompt in Windows:

The Disk Management command is the same in all versions of Windows, so these instructions apply equally to Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Not comfortable working with commands? You can also Open Disk Management From the Computer Management Tool in Windows. (This is easy and fast, though, we promise!)

How to Open Disk Management With a Command

Using the Disk Management command only takes a few seconds once you learn how it's done.

  1. In Windows 10 and Windows 8, open Run from the Start menu or Apps screen (or see the A Quicker Method... section at the bottom of the page for an even faster method for opening this tool).

    In Windows 7 and Windows Vista, select Start.

    In Windows XP and earlier, go to Start and then Run.

    All you're doing in this step is accessing a part of Windows that will let you use the command for Disk Management to search for and open the tool, as you'll see in the next step. It might seem odd that there are multiple ways to do this, but every version of Windows works a bit differently.

  2. Type the following Disk Management command in the text box:


    ...and then hit the Enter key or press OK, depending on where you ran the command from.

    diskmgmt.msc command in Run app on Windows 10

    Technically, opening Disk Management from the Command Prompt would require that you actually open the Command Prompt program (which you can do if you want; it works the same way). However, running an executable program like diskmgmt.msc from the search or Run box accomplishes the same thing.

    Technically, diskmgmt.msc isn't the "Disk Management command" any more than any non command-line tool's executable is a "command." In the strictest sense, diskmgmt.msc is just the Run command for the program.

  3. Wait while Disk Management opens. It should be immediate but it might take a few moments for the whole program to load.

Now that it's open, you can use it to change drive letters, partition a drive, format a drive, and more.

The method you use to open Disk Management doesn't change what you can do with it. In other words, all the same functions exist no matter which shortcut method you use, whether it be with Command Prompt, the Run dialog box, Computer Management, or even Windows Explorer.

A Quicker Method in Windows 10 & Windows 8

Are you using a keyboard or mouse with Windows 10 or Windows 8? If so, opening Disk Management via the Power User Menu is even faster than via its Run command.

Just press WIN+X to bring up the menu, then click Disk Management. In Windows 10 and Windows 8.1, right-clicking the Start button works to bring up the Power User Menu, too.

Power User Menu in Windows 8

In Windows 10, you could also execute diskmgmt.msc directly from the Cortana interface, which is nice if you're used to using that to execute commands already.

Another way to use the Disk Management command is from Task Manager. This definitely isn't a quicker method than the procedure described above, but it might be your only option if you're having trouble displaying the desktop or opening menus.

To do this, open Task Manager via Ctrl+Shift+Esc, and go to File > Run new task. Enter diskmgmt.msc and select OK.

Disk Management command in Task Manager for Windows 10

The Task Manager method is the exact same as using the Run dialog box. If you compare the two boxes, you'll notice that they look nearly the same because you're accessing the same function in Windows: the command line.

Was this page helpful?