Windows 10 Disk Management via Prompt
There are several ways to open Disk Management from the Command Prompt in Windows 10:
There are two primary tools available to manage disks on a Windows computer.
- Disk Management Console (a graphical interface using the Microsoft Management Console framework .msc)
- There are many ways of accessing this tool
- DiskPart, a command line tool
- Doth should be opened with administrative privileges.
Using the diskmgmt.msc
command:
- Open the Command Prompt as an administrator (right-click the Start button and select “Run as administrator” or search for “Command Prompt” in the Start menu and right-click it to select “Run as administrator”).
- Type
diskmgmt.msc
and press Enter.
- Using the
diskpart
command:- Open the Command Prompt as an administrator (as described above).
- Type
diskpart
and press Enter to launch the DiskPart utility. - At the DISKPART> prompt, type
list disk
to display all disks, then select the disk you want to manage using theselect disk <disk_number>
command.
Additional Tips
- Make sure you’re logged in as an administrator before opening Disk Management or DiskPart from the Command Prompt.
- You can also use the
powershell
command to open Disk Management:powershell -Command "Start-Process -FilePath 'diskmgmt.msc' -Verb RunAs"
. - If you need to perform multiple operations, consider creating a text file script with DiskPart commands and running it from the Command Prompt.
Common DiskPart Commands
- help or ?: Displays all commands available.
- <command> ? (or help) displays options available for the command
list disk
: Displays a list of all disks on the system.select disk <disk_number>
: Selects the specified disk for management.list volume
: Displays a list of all volumes on the selected disk.select volume <volume_number>
: Selects the specified volume for management.format <volume>
: Formats the selected volume.delete volume <volume_number>
: Deletes the specified volume.
There is a huge difference between “Disk Management” and DiskPart: There are many more options available in DiskPart, it is however a tool where knowledge of what is required and what commands are available is required.
Remember to use caution when using DiskPart commands, as they can modify your disk configuration permanently. Always make sure to back up your data before making significant changes.