While working in a large organisation where all external software was forbidden, I wanted to map my caps lock to escape to improve my Vim experience. The route which finally worked was to use the reg instruction:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,3a,00,46,00,01,00,3a,00,00,00,00,00

I found this on vim.fandom.com. I first tried the "current user" method. This didn't work so I changed to using the "all users" option which was successful.