Enable/Disable Numlock at Windows Startup

Are you facing an annoying issue where NumLock is enabled every time you start Microsoft Windows? Don’t worry; we’ve got you covered! In this post, we’ll guide you through simple and effective steps to solve this problem once and for all. Say goodbye to NumLock frustrations and hello to a smoother Windows startup experience. Let’s dive right in!

Method 1 – Registry Setting

Note: You may have to turn off Fast Startup to make these work. You can go to Control Panel System > Hardware and Sound > Power Options > Choose what the power button does, then select on Change settings that are currently unavailable, turn off Fast Startup and select Save.

Manual Change Using Regedit

  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"

If this doesn’t work for you, try this:

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

Disable Num Lock:

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

If this doesn’t work for you, try this:

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

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, causing certain letters to act as a numeric keypad. This is a common occurrence for laptop users.

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

Method 3 – BIOS Setting

Most computers, including virtual machines, will have a BIOS setting that controls whether NumLock is enabled or disabled at startup. You can usually enter the BIOS by pressing a specific key, such as “Delete” or “F1,” during the startup process 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.



Leave a Comment

Kroki do przywracania systemu w systemie Windows 11

Kroki do przywracania systemu w systemie Windows 11

Jeśli napotykasz błędy lub awarie, postępuj zgodnie z instrukcjami dotyczącymi przywracania systemu w systemie Windows 11, aby przywrócić urządzenie do poprzedniej wersji.

6 Najlepsze alternatywy dla Microsoft Office

6 Najlepsze alternatywy dla Microsoft Office

Jeśli szukasz najlepszych alternatyw dla Microsoft Office, oto 6 doskonałych rozwiązań, które możesz wypróbować.

Windows: Otwórz Wiersz Polecenia w Specyficznej Lokalizacji Katalogu

Windows: Otwórz Wiersz Polecenia w Specyficznej Lokalizacji Katalogu

Ten poradnik pokazuje, jak stworzyć skrót na pulpicie Windows, który otwiera wiersz poleceń w określonej lokalizacji katalogu.

4 Rozwiązania problemów z uszkodzoną aktualizacją systemu Windows

4 Rozwiązania problemów z uszkodzoną aktualizacją systemu Windows

Odkryj kilka sposobów na naprawienie uszkodzonej aktualizacji systemu Windows, jeśli Twoje urządzenie ma problemy po zainstalowaniu ostatniej aktualizacji.

Jak ustawić wideo na ekranie wygaszacza w Windows 11

Jak ustawić wideo na ekranie wygaszacza w Windows 11

Czy masz problemy z ustaleniem, jak ustawić wideo jako wygaszacz ekranu w Windows 11? Odkrywamy, jak to zrobić, używając darmowego oprogramowania, które jest idealne dla wielu formatów plików wideo.

Windows 11: Wyłącz głos Narratora używając 5 metod

Windows 11: Wyłącz głos Narratora używając 5 metod

Czy denerwuje Cię funkcja Narrator w systemie Windows 11? Dowiedz się, jak wyłączyć głos narratora na kilka łatwych sposobów.

Jak wyłączyć szyfrowanie plików w systemie Windows (EFS)

Jak wyłączyć szyfrowanie plików w systemie Windows (EFS)

Jak włączyć lub wyłączyć system szyfrowania plików w systemie Microsoft Windows. Odkryj różne metody dla Windows 11.

Pulpit zdalny: Napraw błąd "Windows nie może się zalogować, ponieważ profil nie może zostać załadowany"

Pulpit zdalny: Napraw błąd "Windows nie może się zalogować, ponieważ profil nie może zostać załadowany"

Pokazujemy, jak rozwiązać problem Windows nie może się zalogować, ponieważ profil nie może zostać załadowany, podczas łączenia z komputerem poprzez Pulpit zdalny.

Dwa Sposoby na Naprawienie Problemu "Coś poszło nie tak i Twój PIN nie jest dostępny"

Dwa Sposoby na Naprawienie Problemu "Coś poszło nie tak i Twój PIN nie jest dostępny"

Coś poszło nie tak i Twój PIN nie jest dostępny w systemie Windows? Nie panikuj! Istnieją dwa skuteczne rozwiązania, aby naprawić ten problem i przywrócić dostęp do PIN-a.

Błąd czasu w Windows 11 – Przyczyny/Poprawki

Błąd czasu w Windows 11 – Przyczyny/Poprawki

Co zrobić, gdy czas na komputerze z Windows 11 tajemniczo nie pokazuje właściwego czasu? Wypróbuj te rozwiązania.