💼 Group Policy needs Windows 11 Pro, Enterprise or Education
🔄 Includes a restart or sign-out
To close OneDrive on Windows 11 for the whole PC, turn it off with the Local Group Policy Editor on Pro, Education, or Enterprise, or with the Registry Editor on Home. 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.
The Local Group Policy Editor is a tool that sets rules for every user on the computer. The Registry Editor is a database of Windows settings. Both methods need an administrator account. The same steps also turn on OneDrive on this computer again later.
⚡ Quick Answer
To turn on OneDrive on this computer again, open Edit group policy (Pro, Education, or Enterprise), go to Computer Configuration›Administrative Templates›Windows Components›OneDrive, double-click Prevent the usage of OneDrive for file storage, choose Not Configured or Disabled, click OK, then restart or sign out and back in.
Advertisement
How to Turn On or Off OneDrive Using the Local Group Policy Editor
To disable OneDrive in Windows 11 for every user account with one policy, use the Local Group Policy Editor. You don’t have to edit each profile. This method works at the Windows level, not inside the OneDrive app’s own settings.
📝Good to KnowThe Local Group Policy Editor is not included in Windows 11 Home. If you can’t find it, skip to the registry method below. This method requires administrator privileges.
Advertisement
These steps turn OneDrive off, or turn on OneDrive on this computer again, by changing one policy.
Click the Start button and type Edit group policy. Group Policy Editor The search results list the matching app.
Open the Edit group policy app from the search results. The Local Group Policy Editor opens. If Windows asks for permission, click Yes.
Open the folders in the left pane to follow this path: Computer Configuration > Administrative Templates > Windows Components > OneDrive The right pane lists the policies in that folder.
Double-click Prevent the usage of OneDrive for file storage. A settings window opens.
Choose one of the three options. Pick Enabled to turn OneDrive off. Pick Not Configured or Disabled to turn it on.
Not Configured (default) – OneDrive works normally.
Enabled – OneDrive is turned off and cannot be used.
Disabled – OneDrive is turned on and works normally.
Click OK. The settings window closes and the policy list shows your new state.
Close the Local Group Policy Editor.
Restart your computer or sign out and back in to apply the changes.
That’s it. OneDrive is now blocked or allowed on this PC, depending on the option you chose.
The labels are confusing at first. 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.
To undo the change, open the same policy, choose Not Configured, click OK, and restart or sign out and back in. This returns the PC to its default state.
Advertisement
How to Turn On or Off OneDrive Using the Windows Registry
📝Good to KnowOn 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.
These steps disable OneDrive in Windows 11 Home, or turn it back on, with a single registry value.
Press Win+R. The Run dialog (a small box that opens programs by name) appears.
Type regedit and press Enter. Click Yes if User Account Control asks for permission. The Registry Editor opens.
Back up the registry by choosing File›Export. This step is optional but wise. Save the file somewhere you can find it. If something goes wrong, restore it with File›Import.
Expand the folders in the left pane to reach this path: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\OneDrive
Check whether an OneDrive key already exists under Windows. If it does, skip the next step.
Create the OneDrive key if it is missing. Right-click Windows, choose New›Key, and name it OneDrive. The new key appears in the left pane.
Click the OneDrive key to select it.
Create a new value in the right pane. Right-click the empty area and choose New›DWORD (32-bit) Value.
Name the new value DisableFileSyncNGSC and press Enter. It appears in the list with a value of 0.
Double-click DisableFileSyncNGSC. The Edit DWORD (32-bit) Value window opens.
Enter the value data. Use 1 to turn OneDrive off. Use 0 to turn OneDrive on.
1 to turn OneDrive off
0 to turn OneDrive on
Click OK. The list now shows your value data.
Close the Registry Editor.
Restart your computer or sign out and back in to apply the change.
That’s it. The DisableFileSyncNGSC value now controls whether OneDrive runs on this PC.
Advertisement
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 or sign out and back in. The Group Policy method sets the same value, so you can use whichever tool your edition has.
What Happens When OneDrive Is Disabled?
Disabling 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.
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 or sign out and back in.
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.
📬 Get new Windows tips in your inbox
One email when we publish something worth your time. We send a link to confirm. No spam, unsubscribe anytime. How we use your email
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.
No comments yet — be the first to share your thoughts!