Prevent launch an application
Empêcher le lancement d'une application
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.
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_CURRENT_USER\SOFTWARE\Policies\Microsoft\TabletPC- Value name
PreventButtonApplicationLaunch
| 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: TabletShell/PreventLaunchApp_1
$k = 'HKCU:\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 DWordDisable
# Disable: TabletShell/PreventLaunchApp_1
$k = 'HKCU:\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 DWordRevert to "Not configured"
# Revert to "Not configured": TabletShell/PreventLaunchApp_1
$k = 'HKCU:\SOFTWARE\Policies\Microsoft\TabletPC'
Remove-ItemProperty -Path $k -Name 'PreventButtonApplicationLaunch' -ErrorAction SilentlyContinue