Share via


Group Policy to disable Microsoft OneDrive does not work

Question

Friday, November 6, 2015 4:12 PM

This is the group policy I enabled for our environment but it is not working for our Windows 7 PCs.  I did a gpresult /r and verified that the group policy is being applied.  This is installed on a lot of PCs so uninstalling it on every single one is not an option.  I was able to block access to onedrive.com & onedrive.live.com using app control through our firewall but I have a few firewalls that do not support app control.  Can anyone give me some suggestions on how to disable OneDrive or tell me why this group policy is not working for Windows 7 clients (x86 & 64bit):

https://support.office.com/en-us/article/Turn-off-or-uninstall-OneDrive-f32a17ce-3336-40fe-9c38-6efb09f944b0

In the Local Group Policy Editor, in the folder list under Local Computer Policy, navigate the folders to Local Computer Policy > Computer Configuration > Administrative Templates > Windows Components > OneDrive.

        

  • On the OneDrive screen, under Setting, click Prevent the usage of OneDrive for file storage.

  • In the Prevent the usage of OneDrive for file storage box, select Enabled, then click OK.

All replies (1)

Friday, November 6, 2015 4:19 PM ✅Answered | 3 votes

OK, I found out how to disable OneDrive from being opened and here it is (this is something I can deploy via group policy):

Here’s how to use Registry Editor to turn off OneDrive everywhere completely:

  1. Press Win + R keyboard accelerator to open Run dialog box.

  2. Type RegEdit.exe and hit Enter or OK to open Registry Editor.

  3. Navigate to the following registry key:

    HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows

  4. Right click on Windows and select New -> Key. Name the new key as OneDrive.

    Note: If OneDrive key already exists, skip this step.

  5. Right click on OneDrive registry key, and select New -> DWORD (32-bit) Value. Name the new value name as DisableFileSyncNGSC

  6. Set the data for DisableFileSyncNGSC registry value as 1.

    Note: DisableFileSync registry value only works in Windows 7, Windows 8 and Windows 8.1 and does not work in Windows 10.

  7. Close Registry Editor.

  8. Sign out and sign in again, or restart the computer.