Open in the explorer

Prevent OneDrive from generating network traffic until the user signs in to OneDrive

Empêcher OneDrive de générer du trafic réseau tant que l'utilisateur ne s'est pas connecté à OneDrive

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › OneDrive FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › OneDrive
Supported on
At least Windows Server 2008 R2 or Windows 7 FR: Au minimum Windows Server 2008 R2 ou Windows 7
ADMX file
SkyDrive.admx
Internal name
SkyDrive/PreventNetworkTrafficPreUserSignIn

Explanation

Enable this setting to prevent the OneDrive sync client (OneDrive.exe) from generating network traffic (checking for updates, etc.) until the user signs in to OneDrive or starts syncing files to the local computer.

If you enable this setting, users must sign in to the OneDrive sync client on the local computer, or select to sync OneDrive or SharePoint files on the computer, for the sync client to start automatically.

If this setting is not enabled, the OneDrive sync client will start automatically when users sign in to Windows.

If you enable or disable this setting, do not return the setting to Not Configured. Doing so will not change the configuration and the last configured setting will remain in effect.

French text from Windows 11 26H2

Activez ce paramètre pour empêcher le client de synchronisation OneDrive (OneDrive.exe) de générer du trafic réseau (rechercher des mises à jour, etc.) tant que l'utilisateur ne s'est pas connecté à OneDrive ou n'a pas commencé à synchroniser des fichiers sur l'ordinateur local.

Si vous activez ce paramètre, les utilisateurs doivent se connecter au client de synchronisation OneDrive sur l'ordinateur local ou choisir de synchroniser des fichiers OneDrive ou SharePoint sur l'ordinateur pour que le client de synchronisation démarre automatiquement.

Si ce paramètre n'est pas activé, le client de synchronisation OneDrive démarre automatiquement lorsque les utilisateurs se connectent à Windows.

Si vous activez ou désactivez ce paramètre, ne le redéfinissez pas sur Non configuré, car cela ne modifierait pas la configuration et le dernier paramètre configuré resterait d'application.

Registry

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\OneDrive
Value name
PreventNetworkTrafficPreUserSignIn
StateValue written
EnabledREG_DWORD = 1
DisabledREG_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/PreventNetworkTrafficPreUserSignIn
$k = 'HKLM:\SOFTWARE\Microsoft\OneDrive'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'PreventNetworkTrafficPreUserSignIn' -Value 1 -Type DWord

Disable

# Disable: SkyDrive/PreventNetworkTrafficPreUserSignIn
$k = 'HKLM:\SOFTWARE\Microsoft\OneDrive'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'PreventNetworkTrafficPreUserSignIn' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": SkyDrive/PreventNetworkTrafficPreUserSignIn
$k = 'HKLM:\SOFTWARE\Microsoft\OneDrive'
Remove-ItemProperty -Path $k -Name 'PreventNetworkTrafficPreUserSignIn' -ErrorAction SilentlyContinue

Availability

Windows Server