Skip to content

Instantly share code, notes, and snippets.

@timbodv
Created December 19, 2019 22:26
Show Gist options
  • Select an option

  • Save timbodv/72b8f6042c2ebaf4996e83d640af494e to your computer and use it in GitHub Desktop.

Select an option

Save timbodv/72b8f6042c2ebaf4996e83d640af494e to your computer and use it in GitHub Desktop.
# disable the CAPS LOCK key in Windows, a reboot is required to take effect
if (-not $(Test-Path "HKLM:\SYSTEM\CurrentControlSet\Control\Keyboard Layout")) {
New-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Control" -Name "Keyboard Layout" -ItemType Key
}
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Keyboard Layout" -Name "Scancode Map" -Value 0,0,0,0,0,0,0,0,2,0,0,0,0,0,58,0,0,0,0,0 -Type Binary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment