Open in the explorer

Synchronize offline files before suspend

Synchroniser les fichiers hors connexion avant qu’ils ne soient suspendus

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Network › Offline Files FR: Configuration ordinateur › Stratégies › Modèles d'administration › Réseau › Fichiers hors connexion
Supported on
Windows Server 2003, Windows XP, and Windows 2000 only FR: Windows Server 2003, Windows XP et Windows 2000 uniquement
ADMX file
OfflineFiles.admx
Internal name
OfflineFiles/Pol_SyncAtSuspend_2

Explanation

Determines whether offline files are synchonized before a computer is suspended.

If you enable this setting, offline files are synchronized whenever the computer is suspended. Setting the synchronization action to "Quick" ensures only that all files in the cache are complete. Setting the synchronization action to "Full" ensures that all cached files and folders are up-to-date with the most current version.

If you disable or do not configuring this setting, files are not synchronized when the computer is suspended.

Note: If the computer is suspended by closing the display on a portable computer, files are not synchronized. If multiple users are logged on to the computer at the time the computer is suspended, a synchronization is not performed.

French text from Windows 11 26H2

Détermine si les fichiers hors connexion sont synchronisés avant qu’un ordinateur ne soit en pause.

Si ce paramètre est activé, les fichiers hors connexion sont synchronisés chaque fois que l’ordinateur est en pause. La définition de l’action de synchronisation à la valeur « Rapide » assure uniquement que tous les fichiers mis en cache sont complets. La définition de l’action de synchronisation à la valeur « Complet » garantit que tous les fichiers et dossiers du cache sont à jour par rapport à la version la plus récente.

Si ce paramètre est désactivé ou n’est pas configuré, les fichiers ne sont pas synchronisés lorsque l’ordinateur est en pause.

Remarque : si l’ordinateur est mis en pause en refermant l’affichage sur un ordinateur portable, les fichiers ne sont pas synchronisés. Si plusieurs utilisateurs ont ouvert une session sur l’ordinateur au moment où l’ordinateur est mis en pause, la synchronisation n’est pas effectuée.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\NetCache
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

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_SyncAtSuspend_2
$k = 'HKLM:\Software\Policies\Microsoft\Windows\NetCache'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Action
# Possible options:
#   Quick = 0
#   Full = 1
Set-ItemProperty -Path $k -Name 'SyncAtSuspend' -Value 0 -Type DWord

Disable

# Disable: OfflineFiles/Pol_SyncAtSuspend_2
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": OfflineFiles/Pol_SyncAtSuspend_2
$k = 'HKLM:\Software\Policies\Microsoft\Windows\NetCache'
Remove-ItemProperty -Path $k -Name 'SyncAtSuspend' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Action:Action :Lbl_SyncAtSuspendComboDrop-down listenumSyncAtSuspendREG_DWORD
Required · Default choice (UI): #0
LabelValue
QuickREG_DWORD = 0
FullREG_DWORD = 1

Availability