How to Enable or Disable Num Lock at Windows Startup
In this article
You can control the state of the numeric keypad (Num Lock) when your computer turns on by adjusting a specific registry setting. By default, Windows often leaves this in an unpredictable state depending on the last shutdown, but you can force it to always be On or Off for consistency and convenience.
What You'll Need
- A Windows PC running Windows 10 or Windows 11
- Administrator access to edit the Registry Editor
- A basic understanding of navigating system settings
Step-by-Step
- Open the Registry Editor: Press the
Windows Key + Ron your keyboard to open the Run dialog box. Typeregeditand pressEnter. If prompted by User Account Control, click Yes to allow the app to make changes. - Navigate to the Key Location: In the Registry Editor address bar at the top, paste the following path and press
Enter:HKEY_USERS\.DEFAULT\Control Panel\Keyboard - Locate the InitialKeyboardIndicators Value: In the right-hand pane, scroll down until you find the entry named
InitialKeyboardIndicators. It may already have a value assigned to it. - Modify the Value Data: Double-click on
InitialKeyboardIndicators. A small window will appear. You will see a number in the "Value data" field. - Set the Desired State: Change the number based on your preference:
- For Num Lock ON: Enter the number
2. - For Num Lock OFF: Enter the number
0.
80000000for off, modern Windows versions reliably interpret0as disabled and2as enabled during the boot sequence. - For Num Lock ON: Enter the number
- Save and Exit: Click OK to save the change. Close the Registry Editor completely.
- Restart Your Computer: For the changes to take effect, you must restart your machine. Upon reboot, check if the Num Lock light on your keyboard behaves as expected.
Common Mistakes
The most frequent error users make is entering incorrect hexadecimal values or confusing the decimal inputs. Ensure you are typing the simple decimal numbers 0 or 2, not complex strings. Another common mistake is forgetting to restart the computer; the registry change only applies to new sessions, so a restart is mandatory. Additionally, some users attempt to change this via the standard Settings menu, which does not expose this specific hardware initialization toggle.
Tips
If you frequently switch between different keyboards or external peripherals, note that some high-end gaming keyboards have their own BIOS-level settings that override Windows registry commands. In such cases, check the manufacturer's software suite. Also, consider creating a System Restore point before editing the registry. This provides a safety net if any unintended side effects occur, although this specific key is generally safe to modify.
Troubleshooting
If Num Lock still does not behave correctly after following the steps above, try these checks:
1. Check Fast Startup: Windows 10 and 11 use a feature called "Fast Startup" which hibernates the kernel instead of fully shutting down. This can sometimes bypass registry initialization scripts. Go to Control Panel > Hardware and Sound > Power Options > Choose what the power buttons do. Click Change settings that are currently unavailable and uncheck Turn on fast startup. Restart and test again.
2. Verify Keyboard Drivers: Outdated drivers might ignore the initial state. Open Device Manager, expand Keyboards, right-click your device, and select Update driver.
3. Third-Party Software Interference: Applications like Logitech G Hub, Razer Synapse, or macro utilities often reset keyboard states upon launching. Check if these apps have a "startup behavior" setting that forces Num Lock on or off.
Frequently Asked Questions
Does this work for all Windows versions?
This method is primarily designed for Windows 10 and Windows 11. Older versions like Windows 7 may require slightly different hex codes or registry paths, though the general principle remains similar.
Will this affect my Caps Lock or Scroll Lock?
No. The InitialKeyboardIndicators value specifically targets the Num Lock state. Caps Lock and Scroll Lock usually remain off by default unless manually toggled.
Can I set different states for different user accounts?
The method described edits the HKEY_USERS\.DEFAULT hive, which controls the login screen and the default profile. To change it for a specific user account, you would need to navigate to that user's specific SID under HKEY_USERS, which is more complex and generally not recommended for average users.
Why did my Num Lock turn on after I updated Windows?
Major Windows updates can sometimes reset registry policies to their defaults. If you notice the behavior reverting, you may need to reapply the registry change after a significant update.
Is there a way to do this without the Registry Editor?
There is no built-in toggle in the modern Windows Settings app for this specific hardware initialization. Some third-party utilities claim to manage this, but the registry method is the native, vendor-supported approach.