Forrest logo
tool overview
On this page you find all important commands for the CLI tool diskpart. If the command you are looking for is missing please ask our AI.


Diskpart is a command-line tool included in Windows operating systems, starting from Windows XP. It allows users to manage disks and partitions through a text-based interface. Diskpart is primarily used for disk management tasks, such as creating, deleting, and resizing partitions. It can also be used to convert the file system of a partition, mark a partition as active or inactive, and assign or remove drive letters. Diskpart offers various command options, such as "list disk" to view all available disks, "select disk" to choose a specific disk for further actions, and "clean" to remove all partitions and formatting from a selected disk. The tool provides more advanced functionalities for experienced users, including setting disk attributes, extending volumes, and creating RAID arrays. While powerful, diskpart requires administrative privileges to execute and should be used with caution to avoid accidental data loss.

List of commands for diskpart:

  • diskpart:tldr:64f33 diskpart: Run diskpart by itself in an administrative command prompt to enter its command-line.
    $ diskpart
    try on your machine
    explain this command
tool overview