Prevent use of Offline Files folder
Empêcher l’utilisation de dossiers de fichiers hors connexion
Explanation
Disables the Offline Files folder.
This setting disables the "View Files" button on the Offline Files tab. As a result, users cannot use the Offline Files folder to view or open copies of network files stored on their computer. Also, they cannot use the folder to view characteristics of offline files, such as their server status, type, or location.
This setting does not prevent users from working offline or from saving local copies of files available offline. Also, it does not prevent them from using other programs, such as Windows Explorer, to view their offline files.
This setting appears in the Computer Configuration and User Configuration folders. If both settings are configured, the setting in Computer Configuration takes precedence over the setting in User Configuration.
Tip: To view the Offline Files Folder, in Windows Explorer, on the Tools menu, click Folder Options, click the Offline Files tab, and then click "View Files."
Désactive le dossier Fichiers hors connexion.
Ce paramètre désactive le bouton « Afficher les fichiers » de l’onglet Fichiers hors connexion. En conséquence, les utilisateurs ne peuvent pas utiliser le dossier Fichiers hors connexion pour afficher ou ouvrir des copies de fichiers réseau stockés sur leur ordinateur. De plus, ils ne peuvent pas utiliser le dossier pour afficher les caractéristiques des fichiers hors connexion telles que le statut, le type ou l’emplacement du serveur.
Ce paramètre n’empêche pas les utilisateurs de travailler hors connexion ou d’enregistrer des copies locales des fichiers disponibles hors connexion. Il n’empêche pas non plus les utilisateurs d’utiliser d’autres programmes, comme l’Explorateur Windows, pour afficher leurs fichiers hors connexion.
Ce paramètre apparaît dans les dossiers Configuration ordinateur et Configuration utilisateur. Si les deux paramètres sont configurés, le paramètre dans Configuration ordinateur est prioritaire sur le paramètre dans Configuration utilisateur.
Conseil : pour afficher le dossier Fichiers hors connexion, dans l’Explorateur Windows, dans le menu Outils, cliquez sur Options des dossiers, cliquez sur l’onglet Fichiers hors connexion, puis cliquez sur « Afficher les fichiers ».
Registry
HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\NetCache- Value name
NoCacheViewer
| State | Value written |
|---|---|
| Enabled | not defined in the ADMX |
| Disabled | not defined in the ADMX |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
The ADMX does not specify the value written when enabled; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled). The commands below use 1/0 as an assumption.
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_NoCacheViewer_1
$k = 'HKCU:\Software\Policies\Microsoft\Windows\NetCache'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'NoCacheViewer' -Value 1 -Type DWord # assumed value (not defined in the ADMX)Disable
# Disable: OfflineFiles/Pol_NoCacheViewer_1
$k = 'HKCU:\Software\Policies\Microsoft\Windows\NetCache'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'NoCacheViewer' -Value 0 -Type DWord # assumed value (not defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": OfflineFiles/Pol_NoCacheViewer_1
$k = 'HKCU:\Software\Policies\Microsoft\Windows\NetCache'
Remove-ItemProperty -Path $k -Name 'NoCacheViewer' -ErrorAction SilentlyContinue