Configure slow-link mode
Configurer le mode de liaison lente
Explanation
This policy setting controls the network latency and throughput thresholds that will cause a client computers to transition files and folders that are already available offline to the slow-link mode so that the user's access to this data is not degraded due to network slowness. When Offline Files is operating in the slow-link mode, all network file requests are satisfied from the Offline Files cache. This is similar to a user working offline.
If you enable this policy setting, Offline Files uses the slow-link mode if the network throughput between the client and the server is below (slower than) the Throughput threshold parameter, or if the round-trip network latency is above (slower than) the Latency threshold parameter.
You can configure the slow-link mode by specifying threshold values for Throughput (in bits per second) and/or Latency (in milliseconds) for specific UNC paths. We recommend that you always specify a value for Latency, since the round-trip network latency detection is faster. You can use wildcard characters (*) for specifying UNC paths. If you do not specify a Latency or Throughput value, computers running Windows Vista or Windows Server 2008 will not use the slow-link mode.
If you do not configure this policy setting, computers running Windows Vista or Windows Server 2008 will not transition a shared folder to the slow-link mode. Computers running Windows 7 or Windows Server 2008 R2 will use the default latency value of 80 milliseconds when transitioning a folder to the slow-link mode. Computers running Windows 8 or Windows Server 2012 will use the default latency value of 35 milliseconds when transitioning a folder to the slow-link mode. To avoid extra charges on cell phone or broadband plans, it may be necessary to configure the latency threshold to be lower than the round-trip network latency.
In Windows Vista or Windows Server 2008, once transitioned to slow-link mode, users will continue to operate in slow-link mode until the user clicks the Work Online button on the toolbar in Windows Explorer. Data will only be synchronized to the server if the user manually initiates synchronization by using Sync Center.
In Windows 7, Windows Server 2008 R2, Windows 8 or Windows Server 2012, when operating in slow-link mode Offline Files synchronizes the user's files in the background at regular intervals, or as configured by the "Configure Background Sync" policy. While in slow-link mode, Windows periodically checks the connection to the folder and brings the folder back online if network speeds improve.
In Windows 8 or Windows Server 2012, set the Latency threshold to 1ms to keep users always working offline in slow-link mode.
If you disable this policy setting, computers will not use the slow-link mode.
Ce paramètre de stratégie contrôle le temps de réponse du réseau et les seuils de débit qui font qu’un ordinateur client fait passer les fichiers et dossiers disponibles hors connexion en mode de liaison lente pour que l’accès à ces données par l’utilisateur ne soit pas dégradé par la lenteur du réseau. Lorsque les fichiers hors connexion sont en mode de liaison lente, toutes les demandes de fichier réseau sont satisfaites à partir du cache de fichiers hors connexion. Cela revient au travail hors connexion.
Si ce paramètre de stratégie est activé, les fichiers hors connexion utilisent le mode de liaison lente si le débit du réseau entre le client et le serveur est inférieur (plus lent que) au paramètre de seuil Débit ou si le temps de réponse du réseau aller-retour est supérieur (plus lent que) au paramètre de seuil Latence.
Vous pouvez configurer le mode de liaison lente en spécifiant des valeurs de seuils pour le débit (en bits par seconde) et/ou la latence (en millisecondes) pour des chemins d’accès UNC spécifiques. Il est recommandé de toujours spécifier une valeur de latence dans la mesure où la détection du temps de réponse du réseau aller-retour est plus rapide. Vous pouvez utiliser des caractères génériques (*) pour spécifier des chemins d’accès UNC. Si vous n’indiquez pas de valeur de latence ou de débit, les ordinateurs exécutant Windows Vista ou Windows Server 2008 n’utiliseront pas le mode de liaison lente.
Si vous ne configurez pas ce paramètre de stratégie, les ordinateurs exécutant Windows Vista ou Windows Server 2008 ne basculeront pas les dossiers partagés en mode de liaison lente. Les ordinateurs Windows 7 ou Windows Server 2008 R2 utiliseront la valeur de latence par défaut de 80 millisecondes lors du passage d’un dossier en mode de liaison lente. Les ordinateurs Windows 8 ou Windows Server 2012 utiliseront la valeur de latence par défaut de 35 millisecondes lors du passage d’un dossier en mode de liaison lente. Pour éviter tout surcoût lors de l’utilisation de téléphones cellulaires ou avec des forfait haut débit, vous devrez peut-être configurer le seuil de latence de sorte qu’il soit inférieur au temps de réponse du réseau aller-retour.
Dans Windows Vista ou Windows Server 2008, après un passage en mode de liaison lente, les utilisateurs continuent à travailler en mode de liaison lente jusqu’à ce qu’ils cliquent sur le bouton Travailler en ligne dans la barre d’outils de l’Explorateur Windows. Les données ne sont synchronisées avec le serveur que si l’utilisateur procède manuellement à une synchronisation via le Centre de synchronisation.
Dans Windows 7, Windows Server 2008 R2, Windows 8 ou Windows Server 2012, en mode de liaison lente Fichiers hors connexion, synchronise les fichiers de l’utilisateur en arrière-plan à intervalles réguliers, ou tel que le configure la stratégie « Configurer la synchronisation en arrière-plan ». En mode de liaison lente, Windows vérifie périodiquement la connexion au dossier et rebascule le dossier en mode connecté si la vitesse du réseau s’améliore.
Dans Windows 8 ou Windows Server 2012, définissez le seuil de latence à 1 milliseconde pour permettre aux utilisateurs de continuer à travailler hors connexion en mode de liaison lente.
Si vous désactivez ce paramètre de stratégie, les ordinateurs n’utilisent pas le mode de liaison lente.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\NetCache- Value name
SlowLinkEnabled
| 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: OfflineFiles/Pol_SlowLinkSettings
$k = 'HKLM:\Software\Policies\Microsoft\Windows\NetCache'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'SlowLinkEnabled' -Value 1 -Type DWord
$k = 'HKLM:\Software\Policies\Microsoft\Windows\NetCache\SlowLinkParams'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# UNC Paths
# Non-additive list: existing values of the key are cleared first
if (Test-Path -Path $k) { (Get-Item -Path $k).Property | ForEach-Object { Remove-ItemProperty -Path $k -Name ([WildcardPattern]::Escape($_)) -ErrorAction SilentlyContinue } }
$items = @{
'<name1>' = '<value1>'
'<name2>' = '<value2>'
} # Replace the values with your own
$items.GetEnumerator() | ForEach-Object { Set-ItemProperty -Path $k -Name $_.Key -Value $_.Value -Type String }Disable
# Disable: OfflineFiles/Pol_SlowLinkSettings
$k = 'HKLM:\Software\Policies\Microsoft\Windows\NetCache'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'SlowLinkEnabled' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": OfflineFiles/Pol_SlowLinkSettings
$k = 'HKLM:\Software\Policies\Microsoft\Windows\NetCache'
Remove-ItemProperty -Path $k -Name 'SlowLinkEnabled' -ErrorAction SilentlyContinue
$k = 'HKLM:\Software\Policies\Microsoft\Windows\NetCache\SlowLinkParams'
Remove-Item -Path $k -Recurse -Force -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| UNC Paths:Chemins UNC :Lbl_SlowLinkSettingsList | List (table)list | Software\Policies\Microsoft\Windows\NetCache\SlowLinkParamsName = value pairs | REG_SZ (values under the key) |