Diskpart
Below is the available commands and a brief description of the command. For more help with various Diskpart commands, click the command below
ACTIVE | - | Mark the selected partition as active. |
ADD | - | Add a mirror to a simple volume. |
ASSIGN | - | Assign a drive letter or mount point to the selected volume. |
ATTRIBUTES | - | Manipulate volume or disk attributes. |
ATTACH | - | Attaches a virtual disk file. |
AUTOMOUNT | - | Enable and disable automatic mounting of basic volumes. |
BREAK | - | break a mirror set. |
CLEAN | - | Clear the configuration information, or all information, off the disk. |
COMPACT | - | Attempts to reduce the physical size of the file |
CONVERT | - | Convert between different disk formats. |
CREATE | - | Create a volume, partition or virtual disk. |
DELETE DISK | - | Delete a disk. |
DELETE PARTITION | - | Delete a partition. |
DETAIL | - | Provide details about an object. |
DETACH | - | Detaches a virtual disk file. |
EXIT | - | exit diskPart. |
EXTEND | - | Extend a volume. |
EXPAND | - | Extend a volume. |
FILESYTEMS | - | display current and supported file systems on the volume. |
FORMAT | - | format the volume or partition |
GPT | - | Assign attributes to the selected GPT partition. |
HELP | - | Display a list of commands. |
IMPORT | - | Import disk group. |
INACTIVE | - | Mark the selected partition as inactive. |
LIST | - | Display a list of objects. |
List Partition | - | Displays the partitions listed in the partition table of the current disk. |
List Volume | - | Displays a list of basic and dynamic volumes on all disks. |
ONLINE | - | Online an object that is currently marked as offline. |
RECOVER | - | Refreshes the state of all disks in the selected pack. Attempts recover on disks in the invalid pack, and resynchronize mirrored volumes and RAID5 volumes that have stale plex or parity data. |
REM | - | Does nothing. This is used to comment scripts |
REMOVE | - | Remove a drive letter or mount point assignment. |
REPAIR | - | Repair a RAId-5 volume with a failed member |
RESCAN | - | Rescan the computer looking for disks and volumes. |
RETAIN | - | Place a retained partition under a simple volume. |
SAN | - |
Display or set the SAN policy for the currently booted OS. |
SELECT | - | Shift the focus to an object. |
Select disk | - | Select the disk |
Select partition | - | Slects the specified patition |
select volume | - | Selects the specified volume |
SETID | - | Change the partition type. |
SHRINK | - | Reduce the size of the selected volume. |
UNIQUEID | - | Displays or sets the GUID partition table (GPT) identifier or master boot record (MBR) signature of a disk. |