Turn off shell protocol protected mode
Désactiver le mode protégé du protocole noyau
Explanation
This policy setting allows you to configure the amount of functionality that the shell protocol can have. When using the full functionality of this protocol, applications can open folders and launch files. The protected mode reduces the functionality of this protocol allowing applications to only open a limited set of folders. Applications are not able to open files with this protocol when it is in the protected mode. It is recommended to leave this protocol in the protected mode to increase the security of Windows.
If you enable this policy setting the protocol is fully enabled, allowing the opening of folders and files.
If you disable this policy setting the protocol is in the protected mode, allowing applications to only open a limited set of folders.
If you do not configure this policy setting the protocol is in the protected mode, allowing applications to only open a limited set of folders.
Ce paramètre de stratégie permet de configurer les fonctionnalités dont peut disposer le protocole noyau. Lorsqu’elles utilisent l’intégralité des fonctionnalités de ce protocole, les applications peuvent ouvrir des dossiers et exécuter des applications. Le mode protégé réduit les fonctionnalités de ce protocole et n’autorise les applications qu’à ouvrir un nombre limité de dossiers. Les applications ne peuvent pas ouvrir de fichiers en utilisant ce protocole s’il est en mode protégé. Nous vous recommandons de laisser ce protocole en mode protégé pour accroître la sécurité de Windows.
Si vous activez ce paramètre de stratégie, le protocole sera complètement activé et autorisera l’ouverture des dossiers et des fichiers.
Si vous le désactivez, le protocole sera en mode protégé et autorisera les applications à ouvrir uniquement un nombre limité de dossiers.
Si vous ne le configurez pas, le protocole sera en mode protégé et autorisera les applications à ouvrir uniquement un nombre limité de dossiers.
Registry
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer- Value name
PreXPSP2ShellProtocolBehavior
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
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: WindowsExplorer/ShellProtocolProtectedModeTitle_2
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'PreXPSP2ShellProtocolBehavior' -Value 1 -Type DWordDisable
# Disable: WindowsExplorer/ShellProtocolProtectedModeTitle_2
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'PreXPSP2ShellProtocolBehavior' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": WindowsExplorer/ShellProtocolProtectedModeTitle_2
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
Remove-ItemProperty -Path $k -Name 'PreXPSP2ShellProtocolBehavior' -ErrorAction SilentlyContinue