Prohibit user configuration of Offline Files
Empêcher la configuration utilisateur des fichiers hors connexion
Explanation
Prevents users from enabling, disabling, or changing the configuration of Offline Files.
This setting removes the Offline Files tab from the Folder Options dialog box. It also removes the Settings item from the Offline Files context menu and disables the Settings button on the Offline Files Status dialog box. As a result, users cannot view or change the options on the Offline Files tab or Offline Files dialog box.
This is a comprehensive setting that locks down the configuration you establish by using other settings in this folder.
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: This setting provides a quick method for locking down the default settings for Offline Files. To accept the defaults, just enable this setting. You do not have to disable any other settings in this folder.
Empêche les utilisateurs d’activer, de désactiver ou de modifier la configuration de la fonctionnalité Fichiers hors connexion.
Ce paramètre supprime l’onglet Fichiers hors connexion de la boîte de dialogue Options des dossiers. Il supprime également l’élément Paramètres du menu contextuel Fichiers hors connexion et désactive le bouton Paramètres de la boîte de dialogue État des fichiers hors connexion. Par conséquent, les utilisateurs ne peuvent pas afficher ou modifier les options de l’onglet Fichiers hors connexion ou de la boîte de dialogue Fichiers hors connexion.
Il s’agit d’un paramètre complet qui bloque la configuration que vous avez définie en utilisant d’autres paramètres de ce dossier.
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 : ce paramètre constitue une méthode rapide pour verrouiller les paramètres par défaut des Fichiers hors connexion. Pour accepter ces paramètres par défaut, il suffit d’activer ce paramètre. Il est inutile de désactiver un autre paramètre de ce dossier.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\NetCache- Value name
NoConfigCache
| 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_NoConfigCache_2
$k = 'HKLM:\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 'NoConfigCache' -Value 1 -Type DWord # assumed value (not defined in the ADMX)Disable
# Disable: OfflineFiles/Pol_NoConfigCache_2
$k = 'HKLM:\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 'NoConfigCache' -Value 0 -Type DWord # assumed value (not defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": OfflineFiles/Pol_NoConfigCache_2
$k = 'HKLM:\Software\Policies\Microsoft\Windows\NetCache'
Remove-ItemProperty -Path $k -Name 'NoConfigCache' -ErrorAction SilentlyContinue