Open in the explorer

Block launching desktop apps associated with a URI scheme

Bloquer le lancement d’applications de bureau associées à un schéma d’URI

Type
Computer and user
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › App runtime User Configuration › Policies › Administrative Templates › Windows Components › App runtime FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Exécution de l’applicationFR: Configuration utilisateur › Stratégies › Modèles d'administration › Composants Windows › Exécution de l’application
Supported on
At least Windows Server 2012, Windows 8 or Windows RT FR: Au minimum Windows Server 2012, Windows 8 ou Windows RT
ADMX file
AppXRuntime.admx
Internal name
AppXRuntime/AppxRuntimeBlockProtocolElevation

Explanation

This policy setting lets you control whether packaged Microsoft Store apps can open URIs using the default desktop app for a URI scheme. Because desktop apps run at a higher integrity level than packaged Microsoft Store apps, there is a risk that a URI scheme launched by a packaged Microsoft Store app might compromise the system by launching a desktop app.

If you enable this policy setting, packaged Microsoft Store apps cannot open URIs in the default desktop app for a URI scheme; they can open URIs only in other packaged Microsoft Store apps.

If you disable or do not configure this policy setting, packaged Microsoft Store apps can open URIs in the default desktop app for a URI scheme.

Note: Enabling this policy setting does not block packaged Microsoft Store apps from opening the default desktop app for the http, https, and mailto URI schemes. The handlers for these URI schemes are hardened against URI-based vulnerabilities from untrusted sources, reducing the associated risk.

French text from Windows 11 26H2

Ce paramètre de stratégie vous permet de contrôler si les applications empaquetées du Microsoft Store peuvent ouvrir des URI à l’aide de l’application de bureau par défaut pour un schéma d’URI donné. Étant donné que les applications de bureau s’exécutent à un niveau d’intégrité supérieur à celui des applications empaquetées du Microsoft Store, il est possible qu’un schéma d’URI lancé par une application empaquetée du Microsoft Store puisse compromettre le système en lançant une application de bureau.

Si vous activez ce paramètre de stratégie, les applications empaquetées du Microsoft Store ne peuvent pas ouvrir des URI dans l’application de bureau par défaut pour un schéma d’URI donné ; elles peuvent ouvrir des URI uniquement dans d’autres applications empaquetées du Microsoft Store.

Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, les applications empaquetées du Microsoft Store peuvent ouvrir des URI dans l’application de bureau par défaut pour un schéma d’URI donné.

Remarque : en activant ce paramètre de stratégie, vous n’empêchez pas les applications empaquetées du Microsoft Store d’ouvrir l’application de bureau par défaut pour les schémas d’URI http, https et mailto. Les gestionnaires de ces schémas d’URI sont préparés aux vulnérabilités liées aux URI provenant de sources non fiables, ce qui limite le risque qu’ils présentent.

Registry

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Associations
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Associations
Value name
BlockProtocolElevation
StateValue written
EnabledREG_DWORD = 1
DisabledREG_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.

Computer (HKLM)

Enable

# Enable: AppXRuntime/AppxRuntimeBlockProtocolElevation
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Associations'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'BlockProtocolElevation' -Value 1 -Type DWord

Disable

# Disable: AppXRuntime/AppxRuntimeBlockProtocolElevation
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Associations'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'BlockProtocolElevation' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": AppXRuntime/AppxRuntimeBlockProtocolElevation
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Associations'
Remove-ItemProperty -Path $k -Name 'BlockProtocolElevation' -ErrorAction SilentlyContinue

User (HKCU)

Enable

Disable

Revert to "Not configured"

Availability