• Skip to main content
  • Skip to primary sidebar

Technipages

Tutorials and fixes for smartphone, gadget, and computer problems

  • Topics
    • Android
    • Browsers
    • Gaming
    • Hardware
    • Internet
    • iPhone
    • Linux
    • macOS
    • Office
    • Reviews
    • Software
    • Windows
    • Definitions
  • Product Reviews
  • Downloads
  • About
Enable/Disable Numlock at Windows Startup

Enable/Disable Numlock at Windows Startup

August 16, 2017 by Mitch Bartlett 23 Comments

Solve a problem where Numlock is enabled in Microsoft Windows at startup with these steps.

Method 1 – Registry Setting

  1. Hold the Windows Key then press “R” to bring up the Run dialog box.
  2. Type “regedit“, then press “Enter“.
  3. Navigate to the following location in the registry:
    • HKEY_USERS
    • .Default
    • Control Panel
    • Keyboard
  4. Change the value of InitialKeyboardIndicators
    • Set it to 0 to set NumLock OFF
    • Set it to 2 to set NumLock ON

PowerShell Script

Use the following PowerShell code:

Enable Num Lock:

  • Set-ItemProperty -Path 'Registry::HKU\.DEFAULT\Control Panel\Keyboard' -Name "InitialKeyboardIndicators" -Value "2"

Disable Num Lock:

  • Set-ItemProperty -Path 'Registry::HKU\.DEFAULT\Control Panel\Keyboard' -Name "InitialKeyboardIndicators" -Value "0"

You can launch this and other PowerShell scripts at startup. Visit this post on using PowerShell to create a job that runs at startup to learn how.

Method 2 – Function Keys

You may have inadvertently pressed a key combination on your keyboard to cause certain letters on your keyboard to be used as a numeric keypad. This is normally the case for laptop users.

In most cases, you will have a “Fn” and “NumLk” key that can be used to toggle this setting on or off. Hold the “Fn” key, then press “NumLk” to toggle the numeric keypad on or off.

Method 3 – BIOS Setting

Most computers, including virtual machines will have a BIOS setting that controls whether or not NumLock is enabled or disabled at startup. You can usually enter the BIOS by pressing a certain key such as “Delete” or “F1” at startup before Windows loads. Once in the BIOS, you should be able to find a setting that controls NumLock.

Method 4 – Startup or Logon Script

If you’re an administrator looking for a way to set the Num Lock on at startup, you can do so using a logon script. There is no specific Group Policy setting to accomplish this. Instead use the following.

  1. Copy and paste the following into a Notepad document, then save it as “numlock.vbs“:
    set WshShell = CreateObject("WScript.Shell")
    WshShell.SendKeys "{NUMLOCK}"
  2. Do one of the following:
    • Place the “numlock.vbs” file in the “Startup” folder of the target computer or user.
    • Run the script through Group Policy using these steps:
      1. Place the “numlock.vbs” in one of the following folders:
        1. Local logon script path = “%SystemRoot% \ System32 \ GroupPolicy \ User Computer\ Scripts \ Logon“
        2. Domain logon script path = “%SysVolFolder% \ Sysvol \ Sysvol \ DomainName \ Scripts“
      2. Hold down the Windows Key and press “R” to bring up the Windows Run dialog box.
      3. Type “mmc“, then press “Enter“.
      4. Go to “File” > “Add/Remove Snap-in” > “Add” > “Group Policy“.
      5. Select the GPO you wish to use by selecting “Browse“. The default is the local computer.
      6. Select “Finish” > “Close” > “OK“.
      7. From the Group Policy Management snap-in, navigate to “User Configuration” or “Computer Configuration” > “Windows Settings” > “Scripts“.
      8. Double-click “Logon script“, then go to “Add” > “Browse“, then select “numlock.vbs“.
      9. Select “Open” > “OK” > “OK“.

Note: The “numlock.vbs” script will simply act like it is pressing the “Num Lock” key once. So really, it will toggle it to the opposite of what it is by default. It’s probably better to use the Registry method, but this method is handy when you’re in a bind.

You Might Also Like

  • Outlook 2019/365: Enable or Disable "Outlook Today" at Startup
    Outlook 2019/365: Enable or Disable "Outlook Today" at…
  • Windows 10: Enable/Disable Sample Submission for Windows Defender
    Windows 10: Enable/Disable Sample Submission for Windows…
  • Windows 11: Enable or Disable Superfetch
    Windows 11: Enable or Disable Superfetch
  • How to Enable/Disable Narrator on Windows 10 and 11
    How to Enable/Disable Narrator on Windows 10 and 11
  • Enable or Disable CD Burning in Windows 10
    Enable or Disable CD Burning in Windows 10
  • Windows 10: Enable/Disable Hibernation
    Windows 10: Enable/Disable Hibernation

Filed Under: Windows

Reader Interactions

Comments

  1. peter clark says

    October 16, 2022 at 10:29 am

    The problem I have with Windows 11 is that it randomly (as far as I have been able to determine, but probably following some arcane logic of its own) switches my num lock on and off, sometimes (but not always) when I use the scroll bar to drop down a spreadsheet.

  2. Nina says

    September 1, 2022 at 9:28 am

    Hey, this helped alot so I have another question. How can I stop the caps/ num lock keys indicators from showing on the screen? Every time I use these keys or some others there are indicators on the screen which are very annoying. I tried everything in s etting and control panel but it didn’t help.

  3. JJ says

    June 11, 2022 at 3:53 pm

    it doesnt work. only temporarily until you restart your pc which i do daily. is there a permanent solution?

    i dont want to have to do this every single time i turn my pc on, just want a one and done solution.

  4. TL says

    December 19, 2021 at 9:58 am

    No this did not work. I change the regedit ALL the time. Even after changing to 2, it unlocks. Please post a ‘real’ fix for non-tech types using Win10.

  5. Volkan Korkmazer says

    July 27, 2021 at 7:27 pm

    I would like to thank Peter Kriz as I was afraid to change the value before he pointed out that the value is broken because of UEFI. This started happening right after I changed my drive to a GPT partition so, he is correct.

  6. Peter Kriz says

    July 8, 2021 at 8:07 pm

    The old number 2147483648 = 0x80000000 used to mean “whatever BIOS setting is for Num lock” in old Windows (NT 3.5 … all the way to XP). Then they introduced UEFI BIOS and broke it.
    I know because 20 years ago I wrote a small utility to change the registry setting and found it then in NT documentation (lost now). Don’t fear about losing something by overriding it with zero or 2.

  7. Paloma says

    May 25, 2021 at 10:49 pm

    Thank you! I used method 1. It works until next time. Unfortunately this is not permanent and very annoying.

  8. Randy Cliff says

    May 20, 2021 at 1:14 pm

    Couple of people have ask what the number 2147483648 is for. It’s likely that Microsoft has expanded the scope of what InitialKeyboardIndicators will impact. We all realize that there’s Num Lock and Scroll Lock and Caps Lock on our keyboards. Traditionally the value (in the registry) of zero (0) would have all 3 of these off. 1 turns on CapsLock and 2 turns on NumLock, therefore 3 turns on both, with 7 turning on all 3 lock buttons.

    Well that super long number converts in hex to become 0x80000000, and in binary it’s “1” followed by 18 or so zeroes. So I don’t know what Microsoft is planning, but that seems just a little silly. But the idea is exactly the same — add “2” to turn on NumLock.

    So 2147483648 should become 2147483650 — I just added “2”. Now that should work unless Win10 is doing some other dumb idea they haven’t told us about.

  9. Kevin Carmody says

    March 3, 2021 at 6:56 am

    Methods 2 and 3 are not available on my machine. I tried methods 1 and 4. Neither one worked if I used the power button to shut the machine down. But method 1 works fine as long as I use software to shut the machine down, e.g. Start menu > Power or Win+X > Shut down.

  10. Bill Murray says

    January 16, 2021 at 7:40 pm

    I tried 2 and it did not work for me. However, entering 1 did work. I have the latest Windows 10 Pro with all feature updates as of 1/16/2021.

  11. Luis says

    January 1, 2021 at 11:20 am

    Yes, This worked!!!
    But what do I do with “2147483648” that was previously recorded there?
    What does this number means?

    Thanks

  12. Danton Cavalcanti Franco Junior says

    December 23, 2020 at 2:22 pm

    Perfect! Congratulations!
    Helped me a lot.

  13. Gino says

    November 19, 2020 at 1:58 am

    Perfect, thanks!

  14. Udith Kumar says

    April 11, 2020 at 2:16 am

    Thanks for the useful information man, Its working fine after following your instructions for enabling the Num lock. Remember it will updated again if it fails to.

  15. Pierre says

    March 5, 2020 at 9:48 am

    Perfect, Thanks

  16. Youness says

    February 12, 2020 at 9:44 am

    Perfect solution for GPO managed environment.

  17. Eelco Busch says

    October 26, 2019 at 4:43 am

    it worked,
    thnx
    Eelco (the Netherlands)

  18. dangode Ganesh says

    September 20, 2019 at 11:08 pm

    very useful information , Thank you very much

  19. JOHNNY says

    July 19, 2019 at 3:55 pm

    Initial value was 2147483648. changed to 0 and numlock is off. Thanks

  20. Dave says

    May 28, 2019 at 9:57 am

    @Taltul No change, still as written. Even if you don’t have a physical numlock key (or it uses a Fn key) it’s still the “NUMLOCK” signal to be sent.

  21. Taltul says

    May 21, 2019 at 5:31 am

    I don’t have a Numlock key on my keyboard (There is FN.) What combination should I use????

  22. Susanne Jones says

    January 21, 2019 at 12:44 pm

    YAY! The nightmare ended, NumLock is finally off.

  23. Jeffery Whigham says

    January 20, 2019 at 10:53 am

    FINALLY!!!!

Did this help? Let us know!

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Recent Posts

  • How to Fix Explorer.exe: Class Not Registered Error in Windows 11
  • How to Fix Explorer.exe Doesn’t Load at Startup Issue
  • How to Enable/Disable Efficiency Mode in Windows 11
  • How to Create and Edit a Playlist on YouTube Music
  • Microsoft Edge Collections: What It is and How to Use It
  • YouTube Premium: How to Disable/Enable Background Playback
  • How to Update Apps on iPad (iPadOS 16.3.1)
  • How to Fix Outlook Rules Are Not Supported for This Account

Who’s Behind Technipages?

Baby and Daddy My name is Mitch Bartlett. I've been working in technology for over 20 years in a wide range of tech jobs from Tech Support to Software Testing. I started this site as a technical guide for myself and it has grown into what I hope is a useful reference for all.

You May Also Like

  • Windows 95/98
  • Microsoft Windows NT
  • Microsoft Windows
  • Microsoft Windows 95
  • Windows Media Player (WMP)

© Copyright 2023 Guiding Tech Media · All Rights Reserved · Privacy