⚡ PowerShell 5.1+

Check "Disable Sticky Keys Shortcut Prompt" Status

Reads the current registry value behind the "Disable Sticky Keys Shortcut Prompt" tweak so you can confirm whether it's applied.

By WindowsScripting.com · 722 B
Test-DisableStickyKeysPromptStatus.ps1
<#
.SYNOPSIS
    Checks whether "Disable Sticky Keys Shortcut Prompt" is currently applied.

.DESCRIPTION
    Reads HKCU:\Control Panel\Accessibility\StickyKeys \ Flags and reports its current value,
    or reports that it isn't set (falling back to the Windows default).

.EXAMPLE
    .\Test-DisableStickyKeysPromptStatus.ps1
#>

[CmdletBinding()]
param()

$regPath = 'HKCU:\Control Panel\Accessibility\StickyKeys'

$value = Get-ItemProperty -Path $regPath -Name 'Flags' -ErrorAction SilentlyContinue

if ($null -eq $value) {
    Write-Host "'Flags' is not set at $regPath (using the Windows default)." -ForegroundColor Yellow
} else {
    Write-Host "Current value of 'Flags': $($value.'Flags')" -ForegroundColor Green
}