Open in the explorer

Prevent launch an application

Empêcher le lancement d'une application

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Tablet PC › Hardware Buttons FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Tablet PC › Boutons du Tablet PC
Supported on
At least Windows Vista FR: Au minimum Windows Vista
ADMX file
TabletShell.admx
Internal name
TabletShell/PreventLaunchApp_2

Explanation

Prevents the user from launching an application from a Tablet PC hardware button.

If you enable this policy, applications cannot be launched from a hardware button, and "Launch an application" is removed from the drop down menu for configuring button actions (in the Tablet PC Control Panel buttons tab).

If you disable this policy, applications can be launched from a hardware button.

If you do not configure this policy, applications can be launched from a hardware button.

French text from Windows 11 26H2

Empêche l'utilisateur de lancer une application à partir d'un bouton du Tablet PC.

Si vous activez cette stratégie, les applications ne peuvent pas être lancées à partir d'un bouton du Tablet PC ; en outre, l'option Lancer une application est supprimée du menu déroulant permettant de configurer les actions des boutons (onglet des boutons du Panneau de configuration du Tablet PC).

Si vous désactivez cette stratégie, les applications peuvent être lancées à partir d'un bouton du Tablet PC.

Si vous ne configurez pas cette stratégie, les applications peuvent être lancées à partir d'un bouton du Tablet PC.

Registry

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\TabletPC
Value name
PreventButtonApplicationLaunch
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.

Enable

# Enable: TabletShell/PreventLaunchApp_2
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\TabletPC'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'PreventButtonApplicationLaunch' -Value 1 -Type DWord

Disable

# Disable: TabletShell/PreventLaunchApp_2
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\TabletPC'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'PreventButtonApplicationLaunch' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": TabletShell/PreventLaunchApp_2
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\TabletPC'
Remove-ItemProperty -Path $k -Name 'PreventButtonApplicationLaunch' -ErrorAction SilentlyContinue

Availability