Prevent the usage of OneDrive for file storage on Windows 8.1
Empêcher l’utilisation de OneDrive pour le stockage de fichiers sur Windows 8.1
Explanation
This policy setting lets you prevent apps and features from working with files on OneDrive for Windows 8.1.
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.
Ce paramètre de stratégie vous permet d’empêcher le fonctionnement des applications et fonctionnalités avec des fichiers sur OneDrive pour Windows 8.1.
Si vous activez ce paramètre de stratégie :
* Les utilisateurs ne peuvent pas accéder à OneDrive à partir de l’application OneDrive et du sélecteur de fichiers.
* Les applications empaquetées du Microsoft Store ne peuvent pas accéder à OneDrive à l’aide de l’API WinRT.
* OneDrive n’apparaît pas dans le volet de navigation de l’Explorateur de fichiers.
* Les fichiers OneDrive ne sont pas synchronisés avec le cloud.
* Les utilisateurs ne peuvent pas charger de photos et de vidéos automatiquement à partir du dossier Pellicule.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, les applications et les fonctionnalités peuvent utiliser le stockage de fichiers OneDrive.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\OneDrive- Value name
DisableFileSync
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: SkyDrive/PreventOnedriveFileSyncForBlue
$k = 'HKLM:\Software\Policies\Microsoft\Windows\OneDrive'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableFileSync' -Value 1 -Type DWordDisable
# Disable: SkyDrive/PreventOnedriveFileSyncForBlue
$k = 'HKLM:\Software\Policies\Microsoft\Windows\OneDrive'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableFileSync' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": SkyDrive/PreventOnedriveFileSyncForBlue
$k = 'HKLM:\Software\Policies\Microsoft\Windows\OneDrive'
Remove-ItemProperty -Path $k -Name 'DisableFileSync' -ErrorAction SilentlyContinue