n represents the number of the disk.Īt the DISKPART> prompt, type "list volume" to display all the volumes on all disks. Unless there is only one disk, you will have to tell DiskPart which disk to manage by using "select disk n" command to give it focus. An asterisk (*) under GPT row means the disk is of GPT partition style. Each one will have a specific disk number, starting with 0. When an object has been focused, any DiskPart commands that you type will act on that object.Īt the DISKPART> prompt, type "list disk" to display all the disks in your computer. The other way is to press "Windows logo + R" keys and type "diskpart" in the box, and then click "OK".Ĭommon DiskPart Windows 10/11 commands (examples study)īefore you can use DiskPart commands in Windows 10, you must first list, and then select an object to give it focus. One way is to type "diskpart" in the Search box, and then when diskpart appears in the search results, right-click it and select "Run as administrator". You will need to launch Windows 10/11 DiskPart with Administrator permission. Most disk partition operations that you can perform in Disk Management tool are integrated into DiskPart.
Users can input DiskPart commands directly to organize hard disk partitions or create a text file script to perform multiple commands. DiskPart, replacing its predecessor - fdisk, is a command-line utility that provides the ability to manage disks, partitions or volumes in your computer running all versions of the operating system since Windows 2000, also including the latest Windows 10.