Open in the explorer

Enable file screens

Activer les filtres de fichiers

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 2008 R2 or Windows 7 FR: Au minimum Windows Server 2008 R2 ou Windows 7
ADMX file
OfflineFiles.admx
Internal name
OfflineFiles/Pol_ExclusionListSettings

Explanation

This policy setting enables administrators to block certain file types from being created in the folders that have been made available offline.

If you enable this policy setting, a user will be unable to create files with the specified file extensions in any of the folders that have been made available offline.

If you disable or do not configure this policy setting, a user can create a file of any type in the folders that have been made available offline.

French text from Windows 11 26H2

Ce paramètre de stratégie permet aux administrateurs d’empêcher la création de certains types de fichiers dans les dossiers rendus disponibles hors connexion.

Si vous activez ce paramètre de stratégie, un utilisateur ne pourra créer de fichiers avec les extensions spécifiées dans aucun des dossiers rendus disponibles hors connexion.

Si vous désactivez ou ne configurez pas ce paramètre de stratégie, un utilisateur peut créer un fichier de tout type dans les dossiers rendus disponibles hors connexion.

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_ExclusionListSettings
$k = 'HKLM:\Software\Policies\Microsoft\Windows\NetCache'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Extensions
Set-ItemProperty -Path $k -Name 'ExcludedFileTypes' -Value '<value>' -Type String

Disable

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

Revert to "Not configured"

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

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Extensions:Extensions :Lbl_ExclusionListSettingsListText boxtextExcludedFileTypesREG_SZ
Max length: 4096

Availability