How to disable OneDrive file syncing

I love OneDrive and use it every day. It’s tied to my Microsoft Account, which I use to download Windows Store apps. Data from modern apps are synchronized across all of my PCs, so I can start a task on one PC and finish it on another. OneDrive syncs my PC theme, background, WiFi passwords, IE favorites, and more. My Windows Phone automatically uploads pictures to OneDrive so I can share just a link to a photo and don’t have to send it as a large attachment. You can even do this with iOS and Android apps. In short, I can’t live without it.

However, I want to use it a bit differently on my work PCs, which are bound to an Active Directory domain. Microsoft has two related products: OneDrive and OneDrive for Business. I use OneDrive for Business to sync files on my work PCs. I don’t want to see my regular OneDrive files there, because I don’t want to accidentally save a work file on my personal OneDrive. However, I still want all the other benefits of OneDrive and my Microsoft Account on my work PCs.


Here’s how I disabled OneDrive file storage. Only follow them if you’re absolutely comfortable with them and fully understand what you’re doing.

  1. From the Windows 8.1 Start Screen, click the Search icon, use the Search charm, or go there directly by hitting the Windows key and Q.
  2. Search for gpedit.msc. Run it.
  3. Expand Computer Configuration –> Administrative Templates –> Windows Components
  4. Select OneDrive
  5. On the right hand side, double click Prevent the usage of OneDrive for file storage
  6. Select the Enabled radio button

When complete, gpedit.msc will look like this:


Some tips:

  • Allow time for the setting to take effect. Group policies are applied every 90 minutes, plus or minus a random amount up to 30 minutes. To apply the policy immediately, run gpupdate from the command prompt.
  • It’s best to do this before adding a Microsoft Account to a PC in an Active Directory domain. This minimizes the amount of cleanup you have to do later.
  • This only works on Windows 8.1 Pro and Windows 8.1 Enterprise editions. Only the Pro and Enterprise editions have group policies. I haven’t tested this on corresponding Windows 7 editions. Future versions of Windows after 8.1 might behave differently.
  • Very important: don’t delete previously synced OneDrive files until this group policy takes effect. Otherwise, if you delete files from your PC they will also be deleted from OneDrive in the cloud. The group policy has taken effect when you no longer see OneDrive in the left pane in File Explorer. Also, open Task Manager and look for a Background Process called OneDrive Sync Engine Host. If you see it, the group policy has not yet been applied. Proceed with extreme caution when deleting files after the policy has taken effect. Try putting a single file in the Recycle Bin and triple check to make certain it is not simultaneously deleted from OneDrive. Don’t empty your Recycle Bin until you’re absolutely certain your files are still intact on It’s easy to mess this up. Don’t follow any instructions in this blog post if you’re not 100% comfortable with what you’re doing.

If you have any questions, please try the OneDrive support forum.

Comments (11)

  1. Mike says:

    Hi Matt,

    This does not stop skydrive.exe from triggering svhost(RPCSS) and svhost(DcomLaunch), so with new version 6.3.9600.17085 after KB2919355 when in Local Account Desktop freezes  when skydrive.exe searches for OneDrive server after opening a folder. This did not happen with version 6.3.9600.16474.

  2. Sue says:


    I have not been able to find anything on the internet yet about how to disable OneDrive on my Windows 7 machines. I had the registry setting for SkyDrive, but those do not work for OneDrive.

    How do I remove OneDrive from my Windows 7 machines?

    Thank you for any help.

  3. Sue says:

    Do you by chance know how to remove OneDrive from Windows 7? I had the registry key for SkyDrive in Windows 7, but that does not seem to be relevant for OneDrive.

    Thank you for any help you can provide.

  4. Rakesh Sharma says:

    Thanks Sir for the valuable information

  5. Eric says:

    Without having access to a Win7 Machine at the moment i have to do this by head:

    To remove OneDrive from a Windows 7 Machine just unstall the software:

    Control PanelProgramsPrograms and Features

    Select "OneDrive" and click "Uninstall"



  6. Asha says:

    not sure it actually removes onedrive.  I uninstalled the software using this method but onedrive was still there.

  7. Patrick says:

    Thanks for the info. I live in a remote area of Canada and the internet blisters along at about 1 Mbps on a good day.The LAST thing I need is a "cloud" program messing up the little connectivity I have. 🙂

  8. noluthando says:

    i dont want onedrive on my phone and i was thinking it will help me to use it but it dont so please cancel it now  

  9. noluthando says:

    i dont want onedrive on my phone and i was thinking it will help me to use it but it dont so please cancel it now

  10. Mike says:

    Search does not find gpedit.msc (only services.msc).

    I have Admin privs.

  11. Gary says:

    To stop OneDrive from starting on Windows 7, hold down Windows key and type r. Enter 'msconfig', click 'Startup', uncheck OneDrive Box.

Skip to main content