Solved How to permanently enable Numlock


Hey.
Here you can find a way that i use at my system , to permanently enable Numlock.
We can put the file/s at the path we want.

1) Firstly, we need one of these 2 files. One its at ps.1 and the other is the .ps1 file compiled to .exe.
2) Next we need to run one of these at a) system Logon (includes Restart) and b) system sleep and hibernation.
To do that we need to create 2 tasks at task scheduler. One for a) one for b)
3) Creating the task for Logon :


General :

1711214630691.png



Trigger:
We set the trigger at "when logging in any user"

1711214766136.png


Action:

1711214899787.png



Conditions:

1711215214987.png



Settings:

1711215280980.png


Thats it for Logon and Restart.👈
For Sleep and Hibernation , here is the way.



Notes:
a)
1) To test if it works while you use the system :
-open notepad
-enable numlock by pressing its key and ensure that numlock is Enabled
-right click and choose Run at task at Task Scheduler
-go back to notepad and check that you can type numbers

2) To test if it works at Restart , Sleep , Hibernation :
-open notepad
-enable numlock by pressing its key and ensure that numlock is Enabled
-Restart or Sleep or Hibernate the system
-ensure that you can type numbers

b)
-.Ps1 file will produce a flash window when running
-.Exe file will be completely hidden , no windows of flashes. Thats better.

c) With the same procedure we could have always enabled the NumLock
The only changes are the file/s.

I had tested at my system and it works 100% OK.


Cheers.
 
Windows Build/Version
Windows 11 pro 23H2
Last edited:
I don't have this problem because I don't allow my PC to sleep.

Back in post #14, I submitted a scheduled task to run an invisible VB script, which runs a PS command. I know that sounds lame, but evidently VB can't read the current Numlock state but PS can 🤷‍♂️. You want VBS so the screen doesn't flash.
LOL we're on the same page there. i use a vbs to run my batch tasks as invisible too :lmao: . that split second command flashing annoys the ever-loving.... out of me
task > run program > wscript.exe
arguments >
Code:
"C:\path\Invisible.vbs" "C:\path\NumberLock.bat"
 

My Computer

System One

  • OS
    Windows 11 Pro
The 2 of my Notebooks with the number pad [15"] I had done the 'fix' on had them reset with the Upgrade to Version 24H2. Not an issue to simply redo it but an omen of defaults being restored.
 

My Computers

System One System Two

  • OS
    Win11 Pro RTM
    Computer type
    Laptop
    Manufacturer/Model
    Dell Vostro 3400
    CPU
    Intel Core i5 11th Gen. 2.40GHz
    Memory
    12GB
    Hard Drives
    256GB SSD NVMe M.2
  • Operating System
    Windows 11 Pro RTM x64
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Vostro 5890
    CPU
    Intel Core i5 10th Gen. 2.90GHz
    Memory
    16GB
    Graphics card(s)
    Onboard, no VGA, using a DisplayPort-to-VGA adapter
    Monitor(s) Displays
    24" Dell
    Hard Drives
    512GB SSD NVMe, 4TB Seagate HDD
    Browser
    Firefox, Edge
    Antivirus
    Windows Defender/Microsoft Security
Check here how to execute a task after hibernation and sleep.
Additionally we could add a 2nd task for the same file which it's trigger is "at any user log on".
 

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP Pavilion 17 cd2205nw
    CPU
    Intel 113700H
    Memory
    16GB
    Graphics Card(s)
    NVIDIA RTX 3050 ti
    Screen Resolution
    1980x1020
    Hard Drives
    Micron 512GB
    Mouse
    Logitech
    Internet Speed
    100Mbs
    Browser
    Vivaldi , Edge
    Antivirus
    Norton Plus

Latest Tutorials

Back
Top Bottom