Open in the explorer

Encrypt the Offline Files cache

Chiffrer le cache des fichiers hors connexion

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
At least Windows Server 2003 operating systems Service Pack 1, Windows XP Professional Service Pack 2, or Windows 2000 Service Pack 5 FR: Au minimum Windows Server 2003 Service Pack 1, Windows XP Professionnel Service Pack 2 ou Windows 2000 Service Pack 5
ADMX file
OfflineFiles.admx
Internal name
OfflineFiles/Pol_EncryptOfflineFiles

Explanation

This policy setting determines whether offline files are encrypted.

Offline files are locally cached copies of files from a network share. Encrypting this cache reduces the likelihood that a user could access files from the Offline Files cache without proper permissions.

If you enable this policy setting, all files in the Offline Files cache are encrypted. This includes existing files as well as files added later. The cached copy on the local computer is affected, but the associated network copy is not. The user cannot unencrypt Offline Files through the user interface.

If you disable this policy setting, all files in the Offline Files cache are unencrypted. This includes existing files as well as files added later, even if the files were stored using NTFS encryption or BitLocker Drive Encryption while on the server. The cached copy on the local computer is affected, but the associated network copy is not. The user cannot encrypt Offline Files through the user interface.

If you do not configure this policy setting, encryption of the Offline Files cache is controlled by the user through the user interface. The current cache state is retained, and if the cache is only partially encrypted, the operation completes so that it is fully encrypted. The cache does not return to the unencrypted state. The user must be an administrator on the local computer to encrypt or decrypt the Offline Files cache.

Note: By default, this cache is protected on NTFS partitions by ACLs.

This setting is applied at user logon. If this setting is changed after user logon then user logoff and logon is required for this setting to take effect.

French text from Windows 11 26H2

Ce paramètre de stratégie détermine si les fichiers hors connexion sont chiffrés.

Les fichiers hors connexion sont des copies dans un cache local de fichiers provenant d’un partage réseau. En chiffrant ce cache, vous limitez la probabilité qu’un utilisateur puisse accéder aux fichiers à partir d’un cache de fichiers hors connexion sans les autorisations requises.

Si vous activez ce paramètre de stratégie, tous les fichiers se trouvant dans le cache des fichiers hors connexion sont chiffrés. Cela inclut les fichiers existant aussi bien que les fichiers ajoutés ultérieurement. La copie mise en cache sur l’ordinateur local est affectée, ce qui n’est pas le cas de celle qui se trouve sur le réseau associé. L’utilisateur ne peut pas déchiffrer les fichiers hors connexion via l’interface utilisateur.

Si vous désactivez ce paramètre de stratégie, tous les fichiers se trouvant dans le cache des fichiers hors connexion sont déchiffrés. Cela inclut les fichiers existants, ainsi que ceux qui ont été ajoutés ultérieurement, et ce, même si les fichiers étaient stockés sur le serveur via le chiffrement NTFS ou le chiffrement de lecteur BitLocker. La copie mise en cache sur l’ordinateur local est affectée, ce qui n’est pas le cas de celle qui se trouve sur le réseau associé. L’utilisateur ne peut pas chiffrer les fichiers hors connexion par le biais de l’interface utilisateur.

Si vous ne configurez pas ce paramètre de stratégie, le chiffrement du cache des fichiers hors connexion est contrôlé par l’utilisateur via l’interface utilisateur. L’état en cours du cache est conservé, et si le cache n’est que partiellement chiffré, l’opération se termine afin qu’il soit entièrement chiffré. Le cache ne reviendra pas à un état déchiffré. L’utilisateur doit être administrateur sur l’ordinateur local pour pouvoir chiffrer ou déchiffrer le cache des fichiers hors connexion.

Remarque : par défaut, ce cache est protégé sur les partitions NTFS par les listes de contrôle d’accès (ACL, access-control list).

Ce paramètre est appliqué lorsque l’utilisateur ouvre une session. Si vous modifiez ce paramètre lorsque l’utilisateur a ouvert une session, il doit fermer la session et la rouvrir pour que le paramètre prenne effet.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\NetCache
Value name
EncryptCache
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: OfflineFiles/Pol_EncryptOfflineFiles
$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 'EncryptCache' -Value 1 -Type DWord

Disable

# Disable: OfflineFiles/Pol_EncryptOfflineFiles
$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 'EncryptCache' -Value 0 -Type DWord

Revert to "Not configured"

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

Availability