0

$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);

I used these commands from here trying to swap capslock|esc and now not only does it not work, but my capslock is doing weird things. How can I undo these commands?

Map capslock to control in windows 10

2
  • Did you back up your registry keys before making the change? Commented Mar 5, 2020 at 8:21
  • You must reboot your pc after changes.
    – Wasif
    Commented Mar 5, 2020 at 8:39

1 Answer 1

0

From the Admin PowerShell console:

$Key = 'HKLM:\System\CurrentControlSet\Control\Keyboard Layout'
Remove-ItemProperty $Key 'Scancode Map'

Then restart.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .