Which of the following commands launches a command interpreter utility in windows?

2021. 4. 22.Boot into UEFI from Command Prompt · 1. Search for Command Prompt in the Start Menu, right-click on it and select the option “Run as ...

2018. 5. 22.3 Options to Access UEFI BIOS Setup in Windows 8 / 10 · Open the elevated Command Prompt, then run the following command: shutdown /r /fw · You'll ...

UEFI Shell commands. The following describes the components of each command listing and then lists UEFI Shell commands in alphabetical order. Prerequisite.

I have used 2 different prompts to write the EFI Shell commands in this article. Shell> – I have used this prompt for the commands that you can run from ...

Table 4-3 lists the commands supported by the EFI Shell interface on ... For details on these commands, enter help command at the EFI shell prompt.

CAP (where XXX. entonces el archivo UEFI Shell (v2. Open the command prompt with the administrator privileges. exe and click Enter.

Method 3: Access UEFI BIOS by Command Prompt · 1. No matter you are in computer desktop or not, press Win + X to access menu and select Command Prompt (Admin) in ...

2022. 11. 19.The Unified Extensible Firmware Interface (UEFI or EFI for short) is a ... in the kernel SHOULD NOT be disabled via the kernel command line, ...

How to Check if Your Computer Uses UEFI or BIOS [in both Linux and Windows] ... Alternative: You can launch a command prompt window as administrator and ...

2022. 11. 13.You can install the efibootmgr command line utility with the following commands. Debian/Ubuntu/Linux Mint sudo apt install efibootmgr. Fedora, ...

Skip to main content

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

diskpart

  • Article
  • 09/22/2022
  • 4 minutes to read

In this article

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

The diskpart command interpreter helps you manage your computer's drives (disks, partitions, volumes, or virtual hard disks).

Before you can use diskpart commands, you must first list, and then select an object to give it focus. After an object has focus, any diskpart commands that you type will act on that object.

Determine focus

When you select an object, the focus remains on that object until you select a different object. 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.

Some commands automatically change the focus. For example, when you create a new partition, the focus automatically switches to the new partition.

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

Syntax

To start the diskpart command interpreter, at the command prompt type:

diskpart <parameter>

Important

You must be in your local Administrators group, or a group with similar permissions, to run diskpart.

Parameters

You can run the following commands from the Diskpart command interpreter:

CommandDescription
active Marks the disk's partition with focus, as active.
add Mirrors the simple volume with focus to the specified disk.
assign Assigns a drive letter or mount point to the volume with focus.
attach vdisk Attaches (sometimes called mounts or surfaces) a virtual hard disk (VHD) so that it appears on the host computer as a local hard disk drive.
attributes Displays, sets, or clears the attributes of a disk or volume.
automount Enables or disables the automount feature.
break Breaks the mirrored volume with focus into two simple volumes.
clean Removes any and all partition or volume formatting from the disk with focus.
compact vdisk Reduces the physical size of a dynamically expanding virtual hard disk (VHD) file.
convert Converts file allocation table (FAT) and FAT32 volumes to the NTFS file system, leaving existing files and directories intact.
create Creates a partition on a disk, a volume on one or more disks, or a virtual hard disk (VHD).
delete Deletes a partition or a volume.
detach vdisk Stops the selected virtual hard disk (VHD) from appearing as a local hard disk drive on the host computer.
detail Displays information about the selected disk, partition, volume, or virtual hard disk (VHD).
exit Exits the diskpart command interpreter.
expand vdisk Expands a virtual hard disk (VHD) to the size that you specify.
extend Extends the volume or partition with focus, along with its file system, into free (unallocated) space on a disk.
filesystems Displays information about the current file system of the volume with focus and lists the file systems that are supported for formatting the volume.
format Formats a disk to accept files.
gpt Assigns the gpt attribute(s) to the partition with focus on basic GUID partition table (gpt) disks.
help Displays a list of the available commands or detailed help information on a specified command.
import Imports a foreign disk group into the disk group of the local computer.
inactive Marks the system partition or boot partition with focus as inactive on basic master boot record (MBR) disks.
list Displays a list of disks, of partitions in a disk, of volumes in a disk, or of virtual hard disks (VHDs).
merge vdisk Merges a differencing virtual hard disk (VHD) with its corresponding parent VHD.
offline Takes an online disk or volume to the offline state.
online Takes an offline disk or volume to the online state.
recover Refreshes the state of all disks in a disk group, attempt to recover disks in an invalid disk group, and resynchronizes mirrored volumes and RAID-5 volumes that have stale data.
rem Provides a way to add comments to a script.
remove Removes a drive letter or mount point from a volume.
repair Repairs the RAID-5 volume with focus by replacing the failed disk region with the specified dynamic disk.
rescan Locates new disks that may have been added to the computer.
retain Prepares an existing dynamic simple volume to be used as a boot or system volume.
san Displays or sets the storage area network (san) policy for the operating system.
select Shifts the focus to a disk, partition, volume, or virtual hard disk (VHD).
set id Changes the partition type field for the partition with focus.
shrink Reduces the size of the selected volume by the amount you specify.
uniqueid Displays or sets the GUID partition table (GPT) identifier or master boot record (MBR) signature for the disk with focus.

Listing available objects

You can view a list of options associated to each command by running the main command followed by what is available to that specific command. Running list by itself will display the four parameters below:

Which of the following commands launches a command interpreter utility in windows?

Note

After you run the list command, an asterisk (*) appears next to the object of focus.

Examples

To see available disk(s), run list disk:

list disk

To select a disk, run select disk followed by the disk number. For example:

select disk 1

Which of the following commands launches a command interpreter utility in windows?

Before disk 1 can be utilized, a partition will need to be created by running create partition primary:

create partition primary

Lastly, we can perform a quick format of disk 1 to NTFS with the label "Backup" by running format fs=ntfs label=Backup quick as seen below:

format fs=ntfs label=Backup quick

Which of the following commands launches a command interpreter utility in windows?

Additional References

  • Command-Line Syntax Key

  • Disk management overview

  • Storage Cmdlets in Windows PowerShell

Feedback

Submit and view feedback for


Additional resources

Additional resources

In this article

What command is used to open a command

Command prompt makes use of the command-line interface to interact with the User. In the Windows operating system, this command prompt interface is implemented through the Win32 console. User can open the interface by via the CMD run command or by going to its original location C:\Windows\system32\cmd.exe.

Which of the following is a command line utility in Windows?

Windows has two command-line shells: the Command shell and PowerShell. Each shell is a software program that provides direct communication between you and the operating system or application, providing an environment to automate IT operations.

Which commands are used in Windows command line interface?

Windows Command Prompt Commands.
Assoc..
Cipher..
File Compare..
Ipconfig..
Netstat..
PathPing..
Tracert..

Is cmd a command interpreter?

The Windows command shell is actually an application built into the Windows operating system. CMD.exe is the command interpreter that accepts your commands and executes them in the way you want.