Insights Technical Hub How to Offline/Online a disk using Diskpart

How to Offline/Online a disk using Diskpart


If your computer has multiple disks, you may want to turn off one or more of your disks.


A computer with multiple disks, access to Windows command line, and Windows operating system.


From the task-bar, open the start menu. Search for cmd. In the command line, enter the command


Allow the Diskpart program to run. Enter the command

list disk

Example output:

DISKPART> list disk
Disk ### Status Size Free Dyn Gpt
-------- ------------- ------- ------- --- ---
Disk 0 Online 119 GB 0 B

The Status column lists the Online/Offline status. Enter the command:

select disk 1

but replace the ‘1’ with the desired disk number. Enter either the command

offline disk


online disk

More Information:



within diskpart for more information.

Let's make your job easier

Sign up to get insightful content