Turn off hardware buttons
Désactiver les boutons du Tablet PC
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.
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_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\TabletPC- Value name
TurnOffButtons
| 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/TurnOffButtons_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 'TurnOffButtons' -Value 1 -Type DWordDisable
# Disable: TabletShell/TurnOffButtons_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 'TurnOffButtons' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": TabletShell/TurnOffButtons_2
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\TabletPC'
Remove-ItemProperty -Path $k -Name 'TurnOffButtons' -ErrorAction SilentlyContinue