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
There is a
DWORD value named “
Attributes” with the following values:
0 = Online
3 = 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
So the generalised steps are:
- Boot into the recovery environment
- Mount the registry offline.
- Edit the registry key. In an offline system there is no “Current” ControlSet so change all of
ControlSet002, etc as appropriate.