Synchroniser les fichiers hors connexion avant qu’ils ne soient suspendus : valeur de Registre SyncAtSuspend (HKCU NetCache)UtilisateurHKCU\Software\Policies\Microsoft\Windows\NetCache
- ID de stratégie
- Pol_SyncAtSuspend_1
- Étendue
- Configuration utilisateur
- Pris en charge sur
- Windows Server 2003, Windows XP et Windows 2000 uniquement
- Source
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
- Catégorie
- Réseau › Fichiers hors connexion
Registre
SyncAtSuspend
REG_DWORDUtilisateurHKCU\Software\Policies\Microsoft\Windows\NetCache Clé actuelle
- Valeur si activée
- Dépend de la valeur de l'option
- Élément
- Action :
| Entrée | Valeur stockée |
|---|---|
| Rapide | 0 |
| Complet | 1 |
Appliquer avec .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\NetCache] ; Options (en utiliser une seule) ; Rapide "SyncAtSuspend"=dword:00000000 ; Complet "SyncAtSuspend"=dword:00000001
CMD
:: Options (en utiliser une seule) :: Rapide reg add "HKCU\Software\Policies\Microsoft\Windows\NetCache" /v "SyncAtSuspend" /t REG_DWORD /d 0 /f :: Complet reg add "HKCU\Software\Policies\Microsoft\Windows\NetCache" /v "SyncAtSuspend" /t REG_DWORD /d 1 /f
PowerShell
# Commun : créer la clé New-Item -Path 'HKCU:\Software\Policies\Microsoft\Windows\NetCache' -Force | Out-Null # Options (en utiliser une seule) # Rapide New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\NetCache' -Name 'SyncAtSuspend' -PropertyType DWord -Value 0 -Force | Out-Null # Complet New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\Windows\NetCache' -Name 'SyncAtSuspend' -PropertyType DWord -Value 1 -Force | Out-Null