Skip to content
Windows 🟡 Intermediate

How to Turn On or off OneDrive in Windows 11

Richard
Written by
Richard
Updated 6 min read
How to Enable or Disable OneDrive in Windows 11
How to Enable or Disable OneDrive in Windows 11
Before you start
  • 20 steps
  • Needs administrator rights
  • Group Policy needs Windows 11 Pro, Enterprise or Education
  • Includes a restart or sign-out

OneDrive is the cloud storage service built into Windows 11. It syncs files in your local folder at 📁C:\Users\yourusername\OneDrive to the cloud, so you can open them from another device. To turn it on or off for the whole PC, use the Local Group Policy Editor (a tool that sets rules for every user on the computer) on Pro, Education, or Enterprise. On Home, use the Registry Editor (a database of Windows settings). Both methods need an administrator account.

⚡ Quick Answer

To turn OneDrive off on Windows 11 Pro, open the Local Group Policy Editor, go to Computer Configuration Administrative Templates Windows Components OneDrive, and set Prevent the usage of OneDrive for file storage to Enabled. On Home, add a DWORD value named DisableFileSyncNGSC set to 1 under 🗝️HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\OneDrive, then restart.

Advertisement

How to Turn On or Off OneDrive Using the Local Group Policy Editor

The Local Group Policy Editor changes OneDrive for every user account with one policy, so you don’t have to edit each profile. It is not included in Windows 11 Home. If you can’t find it, skip to the registry method below. This method requires administrator privileges.

  1. Click the Start button and type Edit group policy.
    Group Policy Editor
    Group Policy Editor
  2. Click the Edit group policy app in the search results. The Local Group Policy Editor opens. If Windows asks for permission, click Yes.
  3. In the left pane, open the folders to follow this path:
    Computer Configuration > Administrative Templates > Windows Components > OneDrive
  4. In the right pane, double-click Prevent the usage of OneDrive for file storage. A settings window opens.
  5. Choose one of the three options:
    • Not Configured (default) – OneDrive works normally.
    • Enabled – OneDrive is turned off and cannot be used.
    • Disabled – OneDrive is turned on and works normally.
  6. Click OK, then close the Local Group Policy Editor.
  7. Restart your computer to apply the change.

The labels are easy to misread. Enabled means the block is enabled, so OneDrive is off. While the block is active, OneDrive stops syncing and disappears from the File Explorer navigation pane. Your files are not deleted. They stay in the local OneDrive folder and in the cloud.

Advertisement

To undo the change, open the same policy, choose Not Configured, click OK, and restart. This returns the PC to its default state.

How to Turn On or Off OneDrive Using the Windows Registry

⚠️WarningOn Windows 11 Home, you control OneDrive by adding or changing one value in the registry. This method edits core system settings, so copy the path and value name exactly. A typo can create a setting that does nothing or cause errors. Sign in with an administrator account before you start.
  1. Press Win+R, type regedit, and press Enter. Click Yes if User Account Control asks for permission. The Registry Editor opens.
  2. Back up the registry first. This step is optional but wise. Click File Export and save the file somewhere you can find it. If something goes wrong, restore it with File Import.
  3. In the left pane, expand the folders to reach this path:
    HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\OneDrive
  4. Check whether an OneDrive key already exists under Windows. If it doesn’t, right-click Windows, choose New Key, and name it OneDrive. The new key appears in the left pane.
  5. Click the OneDrive key to select it. In the empty area of the right pane, right-click and choose New DWORD (32-bit) Value.
  6. Name the new value DisableFileSyncNGSC and press Enter. It appears in the list with a value of 0.
  7. Double-click DisableFileSyncNGSC and enter the value data:
    • 1 to turn OneDrive off
    • 0 to turn OneDrive on
  8. Click OK, close the Registry Editor, and restart your computer.

Keep the value name exactly as written, including the capital letters. To undo the change, set the value back to 0, or right-click the value and choose Delete, then restart. The Group Policy method sets the same value, so you can use whichever tool your edition has.

What Happens When OneDrive Is Disabled?

⚠️WarningDisabling OneDrive stops all background syncing. Your files stay safe online and in your local folders, but changes you make on the PC no longer upload. You also lose the following until you turn OneDrive back on:
  • You can’t open OneDrive from its app or the file picker window.
  • Apps from the Microsoft Store can’t use OneDrive.
  • OneDrive does not show up in the File Explorer sidebar.
  • Your files don’t sync with the cloud.
  • Photos and videos don’t upload automatically from your camera roll.
Advertisement

How to Uninstall OneDrive from 🪟 Windows 11

To remove OneDrive from your PC completely, follow this guide: How to uninstall and remove OneDrive from Windows 11

More Help and Official Information

For Microsoft’s official help, see this page: Microsoft OneDrive Support

What to do next

If OneDrive still appears or runs after a restart, check that the policy is set to Enabled or that DisableFileSyncNGSC is set to 1. To reverse the change, set the policy to Not Configured or the value to 0, then restart. If the OneDrive shortcut in File Explorer stops working when File Explorer runs in administrative mode, update Windows. The optional preview update KB5095093 fixes that issue on Windows 11 24H2 and 25H2.

Frequently asked questions

How to disable OneDrive 🪟 Windows 11?

To disable OneDrive on Windows 11 Pro, Education, or Enterprise, open the Local Group Policy Editor. Go to Computer Configuration, then Administrative Templates, Windows Components, and OneDrive. Set Prevent the usage of OneDrive for file storage to Enabled. On Home, use the Registry Editor instead. Files already in the cloud are not deleted.

How to turn on OneDrive?

To turn on OneDrive, search for OneDrive in the Start menu and open it. Sign in with your Microsoft account, then follow the setup prompts to choose which folders sync. If a policy turned it off, set Prevent the usage of OneDrive for file storage back to Not configured in the Local Group Policy Editor, then restart the PC.

How to turn off OneDrive 🪟 Windows 11?

To turn off OneDrive for your own account, open OneDrive from the system tray, go to Settings, then Account, and choose Unlink this PC. Your files stay on the PC but stop syncing. To block OneDrive for every user, use the Local Group Policy Editor on Pro or higher, or the Registry Editor on Home.

How to enable OneDrive?

To enable OneDrive, open the Local Group Policy Editor and set Prevent the usage of OneDrive for file storage to Not configured. On Home, open the Registry Editor and set the DisableFileSyncNGSC value to 0 under the OneDrive policy key. Restart the PC afterward. Administrator access is required for both.

How to turn off one drive on 🪟 Windows 11?

For a quick stop, right-click the OneDrive cloud icon in the system tray and choose Pause syncing. To turn OneDrive off for good, unlink this PC in the OneDrive app's Settings, or use the Local Group Policy Editor on Pro and higher to block it for all users. Home users need the Registry Editor.

Do I have to have one drive enabled?

No. You do not have to keep OneDrive enabled to use Windows 11. Your PC works fine without it. If you turn it off, files in your OneDrive folder stay on the PC, and the copies in the cloud are not deleted. Sync just pauses until you turn OneDrive back on.

Still have a question?

Answered by AI from this guide. Good questions may be added to this page — please don't include personal details.

Tags: #Windows 11

Did this guide fix your problem?

Richard

About the Author

Richard

Tech Writer, IT Professional

Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.

Advertisement

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *