Enable file screens
Activer les filtres de fichiers
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.
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 StringDisable
# 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 SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Extensions:Extensions :Lbl_ExclusionListSettingsList | Text boxtext | ExcludedFileTypes | REG_SZ | Max length: 4096 |