Wednesday 18 October 2023

Enable Num Lock on Windows Startup

 I may not be the only one who is exasperated by the fact that we’ll have to activate num lock on every startup simply to enter our password to login.

Now, there are several ways to have it activated on startup.

Three profoundly different ways were described by Shyam from The Windows Club. He proposes deactivating Fast Start on Windows, editing the registry and running a script on startup.

The last option is the least intrusive, so I will relay that one.

Open your preferred simple text editor, like Notepad, Emacs, or (my choice) Notepad++.

Enter the following code:

set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys "{NUMLOCK}"

Save the file on a safe place on your main drive with a meaningful name and the extension *.vsb (say NumLockOnStartup.vbs).

Open your task scheduler and create a new task. Under General, you set it to run with the highest privileges and only when the user is logged on. Under Triggers, you set it to run at startup. Under Actions, you add the action Start a Program and add the link to your script file (i.e. NumLockOnStartup.vbs with its full path).

Save the task, and you should have num lock enabled the next time to start your Windows.