Published by


Brink's Avatar
Administrator

Join Date: Jul 2009
Posts: 22,565

How to Change Status of a Disk to Offline or Online in Windows


information   Information
When you take a disk offline, it will no longer show up or be accessible by users until an administrator brings it back online.

This tutorial will show you how to change the status of a hard disk to be offline or online for all users in Vista, Windows 7, and Windows 8.

You must be signed in as an administrator to be able to do the steps in this tutorial.

Note   Note
The Windows boot disk cannot be taken offline.

Removable media cannot be taken offline. They can be ejected or disconnected instead.





Disk - Set as Offline or Online OPTION ONE Disk - Set as Offline or Online
Set Disk as Offline or Online in Disk Management


1. Press the + R keys to open the Run dialog, type diskmgmt.msc, and click/tap on OK to open Disk Management.

2. If prompted by UAC, then click/tap on OK (Windows 7/8) or Continue (Vista).

3. Do step 4 or 5 below for what you would like to do.

4. To Set an Online Disk as Offline

A) In the bottom half of Disk Management, right click or press and hold on a Disk # that you want to make offline, and click/tap on Offline. (see screenshot below)

Click image for larger version

B) Shortly after, you will see the disk offline. Go to step 6 below. (see screenshot below)


Name:  Offline.png
Views: 33414
Size:  28.3 KB

5. To Set an Offline Disk as Online

A) In the bottom half of Disk Management, right click or press and hold on a Disk # that you want to make offline, and click/tap on Online. (see screenshot below)

Click image for larger version

B) Shortly after, the disk will be online and open in explorer. Go to step 6 below.

6. When finished, you can close Disk Management if you like.





Disk - Set as Offline or Online OPTION TWO Disk - Set as Offline or Online
Set Disk as Offline or Online in Command Prompt

1. Open an elevated command prompt or a command prompt at boot.

2. In the command prompt, type diskpart, and press Enter. (see screenshot below step 5 or 6)

3. In the command prompt, type list disk, and press Enter. (see screenshot below step 5 or 6)

4. Do step 5 or 6 below for what you would like to do.

5. To Set an Online Disk as Offline

A) In the command prompt, type the command below for the disk # of an online disk you want to set as offline, and press Enter.

select disk #


Note   Note
Substitute # in the command with the actual disk # you want to set as offline.

For example: select disk 1


B) In the command prompt, type offline disk, press Enter, and go to step 7 below.


Click image for larger version

6. To Set an Offline Disk as Online

A) In the command prompt, type the command below for the disk # of an online disk you want to set as online, and press Enter.

select disk #


Note   Note
Substitute # in the command with the actual disk # you want to set as online.

For example: select disk 1


B) In the command prompt, type online disk, press Enter, and go to step 7 below.


Click image for larger version

7. When finished, you can close the command prompt if you like. If you opened a command prompt at boot, then you can restart the computer back to Windows now.





Disk - Set as Offline or Online OPTION THREE Disk - Set as Offline or Online
Set Disk as Offline or Online in PowerShell

1. Open an elevated PowerShell.

2. Do step 3 or 4 below for what you would like to do.

3. To Set an Online Disk as Offline

A) In PowerShell, type get-disk, and press Enter. (see screenshot below)

B) In PowerShell, type the command below for the disk # of an online disk you want to set as offline, press Enter, and go to step 5 below.

set-disk # -isOffline $true


Note   Note
Substitute # in the command with the actual disk # you want to set as offline.

For example: set-disk 1 -isOffline $true



Click image for larger version

4. To Set an Offline Disk as Online

A) In PowerShell, type get-disk, and press Enter. (see screenshot below)

B) In PowerShell, type the command below for the disk # of an online disk you want to set as online, press Enter, and go to step 5 below.

set-disk # -isOffline $false


Note   Note
Substitute # in the command with the actual disk # you want to set as online.

For example: set-disk 1 -isOffline $false



Click image for larger version

5. When finished, you can close PowerShell if you like.


That's it,
Shawn