Enable access-denied assistance on client for all file types
Activer l’assistance en cas d’accès refusé pour tous les types de fichiers
Explanation
This Group Policy Setting should be set on Windows clients to enable access-denied assistance for all file types
Ce paramètre de stratégie de groupe doit être défini sur les clients Windows pour pouvoir activer l’assistance en cas d’accès refusé pour tous les types de fichiers.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Explorer- Value name
EnableShellExecuteFileStreamCheck
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| 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.
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: srm-fci/EnableShellAccessCheck
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableShellExecuteFileStreamCheck' -Value 1 -Type DWordDisable
# Disable: srm-fci/EnableShellAccessCheck
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer'
# disabledValue is not defined in the ADMX: no value is specified for the "Disabled" stateRevert to "Not configured"
# Revert to "Not configured": srm-fci/EnableShellAccessCheck
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer'
Remove-ItemProperty -Path $k -Name 'EnableShellExecuteFileStreamCheck' -ErrorAction SilentlyContinue