Configure web-to-app linking with app URI handlers
Configurer les liaisons web-application avec les gestionnaires d'URI d'applications
Explanation
This policy setting determines whether Windows supports web-to-app linking with app URI handlers.
Enabling this policy setting enables web-to-app linking so that apps can be launched with a http(s) URI.
Disabling this policy disables web-to-app linking and http(s) URIs will be opened in the default browser instead of launching the associated app.
If you do not configure this policy setting, the default behavior depends on the Windows edition. Changes to this policy take effect on reboot.
Ce paramètre de stratégie détermine si Windows prend en charge les liaisons web-application avec les gestionnaires d'URI d'applications.
L'activation de ce paramètre de stratégie active les liaisons web-application afin que les applications puissent être lancées avec un URI http(s).
La désactivation de cette stratégie désactive les liaisons web-application et les URI http(s) sont ouverts dans le navigateur par défaut au lieu de l'application associée.
Si vous ne configurez pas ce paramètre de stratégie, le comportement par défaut dépend de l'édition de Windows. Les changements apportés à cette stratégie prennent effet au redémarrage.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\System- Value name
EnableAppUriHandlers
| 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: GroupPolicy/EnableAppUriHandlers
$k = 'HKLM:\Software\Policies\Microsoft\Windows\System'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableAppUriHandlers' -Value 1 -Type DWordDisable
# Disable: GroupPolicy/EnableAppUriHandlers
$k = 'HKLM:\Software\Policies\Microsoft\Windows\System'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableAppUriHandlers' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": GroupPolicy/EnableAppUriHandlers
$k = 'HKLM:\Software\Policies\Microsoft\Windows\System'
Remove-ItemProperty -Path $k -Name 'EnableAppUriHandlers' -ErrorAction SilentlyContinue