
Mirrors the simple volume with focus to the specified disk.Īssigns a drive letter or mount point to the volume with focus.Īttaches (sometimes called mounts or surfaces) a virtual hard disk (VHD) so that it appears on the host computer as a local hard disk drive.ĭisplays, sets, or clears the attributes of a disk or volume.Įnables or disables the automount feature.īreaks the mirrored volume with focus into two simple volumes. Marks the disk's partition with focus, as active. You can run the following commands from the Diskpart command interpreter: Command You must be in your local Administrators group, or a group with similar permissions, to run diskpart. To start the diskpart command interpreter, at the command prompt type: diskpart

If this isn't the case, focus on the disk and partition are lost. After a volume has focus, the related disk and partition also have focus if the volume maps to a single specific partition. After a partition has focus, the related volume (if any) also has focus.

You can only give focus to a partition on the selected disk. For example, when you create a new partition, the focus automatically switches to the new partition. Some commands automatically change the focus. For example, if the focus is set on disk 0 and you select volume 8 on disk 2, the focus shifts from disk 0 to disk 2, volume 8.

When you select an object, the focus remains on that object until you select a different object. After an object has focus, any diskpart commands that you type will act on that object. The diskpart command interpreter helps you manage your computer's drives (disks, partitions, volumes, or virtual hard disks).īefore you can use diskpart commands, you must first list, and then select an object to give it focus. Applies to: Windows Server 2022, Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, and Windows Server 2008 R2, Windows Server 2008
