


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
