Open in the explorer

Turn off hardware buttons

Désactiver les boutons du Tablet PC

Type
User
GPO path
User Configuration › Policies › Administrative Templates › Windows Components › Tablet PC › Hardware Buttons FR: Configuration utilisateur › 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/TurnOffButtons_1

Explanation

Turns off Tablet PC hardware buttons.

If you enable this policy, no actions will occur when the buttons are pressed, and the buttons tab in Tablet PC Control Panel will be removed.

If you disable this policy, user and OEM defined button actions will occur when the buttons are pressed.

If you do not configure this policy, user and OEM defined button actions will occur when the buttons are pressed.

French text from Windows 11 26H2

Désactive les boutons du Tablet PC.

Si vous activez cette stratégie, aucune action ne se produit lorsque les boutons sont enfoncés ; par ailleurs, l'onglet des boutons dans le Panneau de configuration du Tablet PC est supprimé.

Si vous désactivez cette stratégie, les actions définies par l'utilisateur et le fabricant sont exécutées lorsque les boutons correspondants sont enfoncés.

Si vous ne configurez pas cette stratégie, les actions définies par l'utilisateur et le fabricant sont exécutées lorsque les boutons correspondants sont enfoncés.

Registry

HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\TabletPC
Value name
TurnOffButtons
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/TurnOffButtons_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 'TurnOffButtons' -Value 1 -Type DWord

Disable

# Disable: TabletShell/TurnOffButtons_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 'TurnOffButtons' -Value 0 -Type DWord

Revert to "Not configured"

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

Availability