Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I like to use the number keys for cursor movement. But every so often I hit Num Lock by mistake, and then instead of moving the cursor where I want it, I end up with an input like this:


How can I permanently disable it? Something compatible with the regedit solution for getting rid of Caps Lock given here would be perfect.

share|improve this question
up vote 8 down vote accepted

Here is a hack to disable both caps lock and num lock:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:

Here is both hacks combined. Numlock disabled + ctrl swapped with caps lock.

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,04,00,00,00,3A,00,1D,00,1D,00,3A,00,00,00,45,00,00,00,00,00

OK, here is the a scancode map for disabling Numlock. I looked here, numlock is hex 45. Back up registry beforehand.

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,02,00,00,00,00,00,45,00,00,00,00,00

Actually Nikolay, that MSFT tech forum link is a little short, see this info at askvg. Toggling (1) doesn't actually disable numlock, it merely sets the state at boot time. In fact it does three things, sets capslock on, numlock off, scrollock off. Here are the rest of the settings. So this does not look like an answer for the OP's issue.

0 - Turn all indicators Off (NumLock, CapsLock, ScrollLock)
1 - Turn CapsLock On
2 - Turn NumLock On
3 - Turn CapsLock and NumLock On
4 - Turn ScrollLock On
5 - Turn CapsLock and ScrollLock On
6 - Turn NumLock and ScrollLock On
7 - Turn all indicators On (NumLock, CapsLock, ScrollLock)
share|improve this answer
I already have the hex scancode from the linked question to disable my caps lock. How do they interact? – William Jockusch Dec 16 '13 at 2:17
ok, hang tight, I will mix the two into one big setting. – Knuckle-Dragger Dec 16 '13 at 2:18
Notice how for this mapping of 3 scan codes, I toggled the number 4. In the single scancode mapping I set it to 2. Basically every mapping you make + 1 is the rule for that. That is why the original hack (of two mappings) was set to 3. Can add more if you follow the pattern. They should interact just fine. – Knuckle-Dragger Dec 16 '13 at 2:26
post the exact code you have, i might have done the wrong sample from that thread, as i did the one with swapping ctrl and caps lock, which does not disable capslock like you mention in your comment. Confirm – Knuckle-Dragger Dec 16 '13 at 2:30

A good tool for such tasks is SharpKeys.

SharpKeys is a Registry hack that is used to make certain keys on a keyboard act like other keys. For example, if you accidentally hit Caps Lock often, you could use this utility to map Caps Lock to a Shift key or even turn it off completely.

It's small, portable and does the same as the accepted answer above, only via a GUI enter image description here

share|improve this answer
A definite +1, provides a nice basic GUI to modify the keyboard – topherg Feb 24 '14 at 15:10
It says there that its usable until Windows Vista, does it work for Win 7 and or 8? – Angelo Fuchs Oct 21 '15 at 9:45
I just used it on Windows 10 and it's working. Also it remembers the modifications you made allowing you to rollback easily. But you can't set the default state of NumLock with it, you'll have to modify the registry HKEY_CURRENT_USER\Control Panel\Keyboard\InitialKeyboardIndicators see VL-80 answer. – gzou Jun 23 at 9:06

This is just quotation of Microsoft Tech forum:

You might have tried this before, but here's how to disable it through the registry:

Click Start, click Run, and type regedit to open the Windows registry editor. In the registry, open the below folders.

HKEY_CURRENT_USER\ Control Panel\ Keyboard\

Within the keyboard folder, you should have a string value named "InitialKeyboardIndicators" with a value of 0, 1, or 2. Below is the explanation of each of these values.

0 = Num Lock is turned OFF after the logon.
1 = Disable Num Lock.
2 = Numlock is turned ON after  the logon.
share|improve this answer
On some machines you may see this value in your key, "2147483648" - Honor thy motherboard BIOS setting. – Knuckle-Dragger Dec 16 '13 at 1:41

Or the quickest and easiest way since our whole company is 10-key literate and hates it when it reverts to the flippin' duplicated arrow keys.

  1. Push the Numlock key so it's in the desired state, Windows XP and forward remembers the user state in the user profile.
  2. Pop the Numlock Key Cap off and put it in your drawer. Since you like it in a permanent state, it pretty much stays that way forever more.
  3. If someone else logs in for the first time, use a pen to activate numlock if it's desired, it stays that way on that user profile forever more.

Has worked very well for nearly the last decade on all workstations, requires no fiddling programming, startup script or registry edits.

share|improve this answer
I've never seen it "remember the user state" in 20 years on all the dozens of XP forward Windows computers that I've been on. And that's the problem. Just HOW to get it to remember. – Doug Null May 1 '14 at 12:50
Numlock state also is affected a BIOS setting in this case. Boot with Numlock active will be one of the BIOS settings. For me, it's been the opposite, the systems I purchase must be blessed by some unholy demon from hell to actually operate properly and remember user state. Sure freaks out the staff when it deactivates in our company, hence the key removal. – Fiasco Labs May 1 '14 at 13:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.