text stringlengths 0 4.23k |
|---|
Parameters |
Parameter |
Description |
noerr |
For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without this parameter, an error causes DiskPart to exit with an error code. |
Examples |
To delete the volume with focus, type: |
delete volume |
delete |
Deletes a partition or a volume. It also deletes a dynamic disk from the list of disks. |
Syntax |
delete disk |
delete partition |
delete shadows |
delete volume |
Parameters |
Parameter |
Description |
Delete disk |
Deletes a missing dynamic disk from the list of disks. |
Delete partition |
Deletes a partition. |
Delete shadows |
Deletes shadow copies. |
Delete volume |
Deletes a volume. |
detach vdisk |
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012 |
Stops the selected virtual hard disk (VHD) from appearing as a local hard disk drive on the host computer. When a VHD is detached, you can copy it to other locations. Before you begin, you must select a VHD for this operation to succeed. Use the select vdisk command to select a VHD and shift the focus to it. |
Syntax |
detach vdisk [noerr] |
Parameters |
Parameter |
Description |
noerr |
For scripting only. When an error is encountered, DiskPart continues to process commands as if the error did not occur. Without this parameter, an error causes DiskPart to exit with an error code. |
Examples |
To detach the selected VHD, type: |
detach vdisk |
detail disk |
Displays the properties of the selected disk and the volumes on that disk. Before you begin, you must select a disk for this operation to succeed. Use the select disk command to select a disk and shift the focus to it. If you select a virtual hard disk (VHD), this command will show the disk's bus type as Virtual. |
Syntax |
detail disk |
Examples |
To see the properties of the selected disk, and information about the volumes in the disk, type: |
detail disk |
detail partition |
Displays the properties of the selected partition. Before you begin, you must select a partition for this operation to succeed. Use the select partition command to select a partition and shift the focus to it. |
Syntax |
detail partition |
Examples |
To see the properties of the selected partition, type: |
detail partition |
detail vdisk |
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012 |
Displays the properties of the selected virtual hard disk (VHD). Before you begin, you must select a VHD for this operation to succeed. Use the select vdisk command to select a VHD and shift the focus to it. |
Syntax |
detail vdisk |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.