Prevent the usage of OneDrive for file storage
Jump to overview

Policy overview

Key metadata and intent for this policy.

Computer
Category
Windows Components > OneDrive
Supported on
At least Windows Server 2008 R2 or Windows 7

Supported OS tags: Windows10, Windows10RT, Windows11, Windows7, Windows8, Windows81, WindowsRT, WindowsRT81, WindowsServer2008, WindowsServer2012, WindowsServer2012R2, WindowsServer2016

This policy setting lets you prevent apps and features from working with files on OneDrive. If you enable this policy setting: * Users can’t access OneDrive from the OneDrive app and file picker. * Packaged Microsoft Store apps can’t access OneDrive using the WinRT API. * OneDrive doesn’t appear in the navigation pane in File Explorer. * OneDrive files aren’t kept in sync with the cloud. * Users can’t automatically upload photos and videos from the camera roll folder. If you disable or do not configure this policy setting, apps and features can work with OneDrive file storage.

Internal name
PreventOnedriveFileSync
Policy ID
24b4331a54e9
Elements
0

Registry values

How enabled and disabled states update the registry.

ScopeRegistry locationTypeEnabled valueDisabled valueCopy
Computer
Path
Software\Policies\Microsoft\Windows\OneDrive
Value name
DisableFileSyncNGSC
REG_DWORD
HKLM
1
HKLM
0
Registry location
Type REG_DWORD · Computer
Path
Software\Policies\Microsoft\Windows\OneDrive
Value name
DisableFileSyncNGSC
Hive
HKLM
Enabled value
1
Disabled value
0

Policy elements

Inputs and configuration options exposed by this policy.

This policy has no additional user input fields.