Policy

Prevent the usage of OneDrive for file storage

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.

Policy
Pack Microsoft Windows
Category Windows Components / OneDrive
Policy ID 24b4331a54e9
Internal name PreventOnedriveFileSync

Registry

Copy registry mappings

HKLM\Software\Policies\Microsoft\Windows\OneDrive\DisableFileSyncNGSC (enabled) = 1
HKLM\Software\Policies\Microsoft\Windows\OneDrive\DisableFileSyncNGSC (disabled) = 0

Policy notes

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.

Related policies