The Disk Management MMC snapin has a "Offline" function:
Once used, a disk shows as Offline, with hover text "This disk is offline because of policy set by an administrator".
However, if the OS does not boot due to the contents of the disk this state can not be reached.
How can this be done to an offline system, using the recovery/Windows PE environment?
This information is stored in the registry under
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\
(disk\device\path)\Device Parameters\Partmgr
There is a
DWORD
value named "Attributes
" with the following values:0
= Online3
= Offline(decimal or hexadecimal are the same)
Device paths tend to contain some part of the device bus and name. The device path on my test system was
SCSI\Disk&Ven_&Prod_LITEONIT_LMT-256\4&35b1cb49&0&040000
.So the generalised steps are:
ControlSet001
,ControlSet002
, etc as appropriate.Open a command prompt and then enter the following commands in sequence: