0

I'm using Window 10, I saw this post and driven by curiousity I mapped Capslock to Ctrl in PowerShell with this code:

$hexified = "00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00".Split(',') | % { "0x$_"};

$kbLayout = 'HKLM:\System\CurrentControlSet\Control\Keyboard Layout';

New-ItemProperty -Path $kbLayout -Name "Scancode Map" -PropertyType Binary -Value ([byte[]]$hexified);

Can someone please kindly point out how do I map it back?

Ng Lok Chun
  • 111
  • 1
  • 3

1 Answers1

1

For anyone wishing to undo a scancode mapping of keys and return all keys to their normal use:

  • Run regedit (administrator permission required)
  • Position to the key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout
  • Right-click the value named "Scancode Map" and select "Delete".
harrymc
  • 498,455