Ouvrir dans l'explorateur

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

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

Type
Ordinateur
Chemin GPO
Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › OneDrive EN : Computer Configuration › Policies › Administrative Templates › Windows Components › OneDrive
Pris en charge sur
Au minimum Windows Server 2008 R2 ou Windows 7 EN : At least Windows Server 2008 R2 or Windows 7
Fichier ADMX
SkyDrive.admx
Nom interne
SkyDrive/PreventNetworkTrafficPreUserSignIn

Explication

Texte français issu de 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.

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.

Registre

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\OneDrive
Nom de la valeur
PreventNetworkTrafficPreUserSignIn
ÉtatValeur écrite
ActivéREG_DWORD = 1
DésactivéREG_DWORD = 0

PowerShell

Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.

Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.

Activer

# Activer : 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

Désactiver

# Désactiver : 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

Revenir à « Non configuré »

# Revenir à « Non configuré » : SkyDrive/PreventNetworkTrafficPreUserSignIn
$k = 'HKLM:\SOFTWARE\Microsoft\OneDrive'
Remove-ItemProperty -Path $k -Name 'PreventNetworkTrafficPreUserSignIn' -ErrorAction SilentlyContinue

Disponibilité

Windows Server