Disk Detector
Windows 10 & 11 Buy license · $29.95
Missing drives

The Disk Is Offline Because of Policy Set by an Administrator: How to Fix It

Fix the disk is offline because of policy set by an administrator in Windows. Bring the disk online with Disk Management or diskpart and keep it online.

Updated 5 minute read The Disk Detector team

"The disk is offline because of policy set by an administrator" means Windows has detected the disk but its storage policy (called the SAN policy) told it to leave new disks offline. Your data is untouched. To fix it, open Disk Management, right-click the disk label and choose Online. If the disk keeps going offline after every restart, open diskpart as administrator and run san policy=OnlineAll so Windows brings new disks online automatically. You may also need to clear a read-only flag with attributes disk clear readonly.

Bringing a disk online does not change its contents. It simply allows Windows to mount its volumes so you can use them.

Where you see this message

Open Disk Management by pressing Win + X and choosing Disk Management. An offline disk shows a small red down-arrow icon and the word Offline under its disk number. Hover the mouse over the disk label, or right-click it, to see the reason. Two reasons are common:

MessageWhat it means
The disk is offline because of policy set by an administratorThe SAN policy keeps new or shared disks offline until someone brings them online
The disk is offline because it has a signature collision with another disk that is onlineTwo disks have the same disk ID, usually after cloning

The policy version is common on Windows Server, on virtual machines, on PCs restored from a system image, and with disks moved from another computer or storage system. The collision version is common after cloning a drive.

Fix 1: Bring the disk online in Disk Management

  1. In Disk Management, right-click the disk label on the left, for example Disk 2 (not the partition bar).
  2. Choose Online.
  3. The status changes to Online and the disk's volumes appear with their drive letters.

If a volume has no letter after this, right-click it and choose Change Drive Letter and Paths → Add.

Fix 2: Bring the disk online with diskpart

If the Online option is grayed out or the disk goes straight back offline, use diskpart:

  1. Right-click Start, choose Terminal (Admin), type diskpart and press Enter.
  2. Type list disk. Offline disks show Offline in the Status column.
  3. Type select disk 2, using your disk's number.
  4. Type online disk.
  5. Type attributes disk. If Current Read-only State is Yes, type attributes disk clear readonly.
  6. Type exit.

Disks brought online after being held offline by policy are sometimes left read-only, which is why step 5 matters. Without it, you can see your files but cannot save anything.

Once the disk is online, open File Explorer and check that your folders and files are there and open normally. If the volume shows as RAW or asks to be formatted, do not format it. That is a separate file system problem, and the disk being offline was only part of the story.

If you prefer PowerShell, the same can be done with Set-Disk -Number 2 -IsOffline $false and Set-Disk -Number 2 -IsReadOnly $false.

Fix 3: Stop it happening again

If the disk goes offline again after a restart, or every new disk you connect starts offline, change the SAN policy:

  1. Open diskpart as administrator, as above.
  2. Type san and press Enter to see the current policy.
  3. If it says Offline Shared or Offline All, type san policy=OnlineAll.
  4. Type exit.
SAN policyBehavior
Online AllAll newly found disks are brought online
Offline SharedDisks on shared storage connections, such as iSCSI network storage, start offline; local disks come online
Offline AllAll newly found disks, except the boot disk, start offline
Offline InternalNewly found internal disks start offline

On servers and shared storage, the offline policy is often set deliberately so that two computers do not write to the same disk at once, which can corrupt it. If the PC is managed by an IT team or connected to shared storage, check with them before changing the policy.

Fixing a signature collision

Every disk has an ID, called a disk signature on MBR disks and a disk GUID on GPT disks. When you clone a disk, the copy can end up with the same ID as the original. Windows will not have two disks with the same ID online, so it takes one offline.

Right-click the offline disk and choose Online, and Windows gives it a new ID. That is all most people need, for example when you are copying files from an old cloned backup.

If you cloned a drive to replace your Windows drive, the simplest approach is to disconnect the original before you start the PC from the clone. Changing the ID of a disk that Windows boots from can upset its startup configuration, so it is better not to have both connected at once until you have confirmed the new drive boots correctly.

Other reasons a disk shows offline

  • Errors or a failing drive. Windows can take a disk offline if it stops responding properly. If the disk will not stay online, check its health.
  • Dynamic disks from another PC may show as Foreign rather than offline. Right-click and choose Import Foreign Disks.
  • A disk set offline by hand, perhaps by another user or a disk tool. Bringing it online is all that is needed.

For what every status in Disk Management means, see our guide to Disk Management status meanings.

Find offline and hidden disks automatically

Disk Detector checks every drive connected to your PC and tells you exactly why one is missing from File Explorer, including when a disk is offline, has no drive letter, is not initialized or has an unreadable file system. It explains the cause in plain English and offers the fix, with anything that could affect your data clearly marked before it runs. Disk Detector also reads the drive's SMART health, so if a disk keeps dropping offline because it is failing rather than because of a policy, you find out before it takes your files with it.

If your problem is a new SSD that is not showing at all, rather than one that is offline, see our guide to an SSD not showing up in Windows. For external drives, see external hard drive not showing up.

Frequently asked questions

Will bringing a disk online delete data?

No. Setting a disk online only lets Windows mount it. Your files are not changed.

Why does my disk keep going offline after a restart?

The SAN policy may be set to keep new disks offline. Running san policy=OnlineAll in diskpart changes that.

What is a signature collision?

Two disks have the same disk ID, usually because one was cloned from the other. Windows keeps one offline to avoid confusion until you bring it online and it gets a new ID.

Get three guides like this every month, plus software update notices.Subscribe →