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:
No, his answers show that he wants to turn it on or off.


All the best,
Denis
I assumed he wanted the key killed so he doesn’t accidently turn it off. Regardless if he want’s it killed or not, I know what his objective is.
I don’t have a motherboard that does not enable num lock on boot. So If I was to kill the key, my num lock stays on.


Hang on though. If the number lock is enabled, the arrows don’t operate, the numbers do. Your comment is adverse to the request.
So you just want to kill that key altogether and hope that the settings remember that you want the number lock enabled at log-on?

You have right. English isnt my native language and i lost in translation. I will correct that.
So i want NumLock enabled by default after Restart , sleep or hibernation.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2 Build 22631.5039
    Computer type
    PC/Desktop
    Manufacturer/Model
    Sin-built
    CPU
    Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz (4th Gen?)
    Motherboard
    ASUS ROG Maximus VI Formula
    Memory
    32.0 GB of I forget and the box is in storage.
    Graphics Card(s)
    Gigabyte nVidia GeForce GTX 1660 Super OC 6GB
    Sound Card
    Onboard
    Monitor(s) Displays
    5 x LG 25MS500-B - 1 x 24MK430H-B - 1 x Wacom Pro 22" Tablet
    Screen Resolution
    All over the place
    Hard Drives
    Too many to list.
    OS on Samsung 1TB 870 QVO SATA
    PSU
    Silverstone 1500
    Case
    NZXT Phantom 820 Full-Tower Case
    Cooling
    Noctua NH-D15 Elite Class Dual Tower CPU Cooler / 6 x EziDIY 120mm / 2 x Corsair 140mm somethings / 1 x 140mm Thermaltake something / 2 x 200mm Corsair.
    Keyboard
    Corsair K95 / Logitech diNovo Edge Wireless
    Mouse
    Logitech: G402 / G502 / Mx Masters / MX Air Cordless
    Internet Speed
    1000/400Mbps
    Browser
    All sorts
    Antivirus
    Kaspersky Premium
    Other Info
    I’m on a horse.
  • Operating System
    Windows 11 Pro 23H2 Build: 22631.4249
    Computer type
    Laptop
    Manufacturer/Model
    LENOVO Yoga 7i EVO OLED 14" Touchscreen i5 12 Core 16GB/512GB
    CPU
    Intel Core 12th Gen i5-1240P Processor (1.7 - 4.4GHz)
    Memory
    16GB LPDDR5 RAM
    Graphics card(s)
    Intel Iris Xe Graphics Processor
    Sound Card
    Optimized with Dolby Atmos®
    Screen Resolution
    QHD 2880 x 1800 OLED
    Hard Drives
    M.2 512GB
    Antivirus
    Defender / Malwarebytes
    Other Info
    …still on a horse.
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 :

View attachment 91237



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

View attachment 91238


Action:

View attachment 91239



Conditions:

View attachment 91240



Settings:

View attachment 91241


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.
Good Morning, i have the same issue , please, can you please share again the .exe file ? thank you !
 

My Computer

System One

  • OS
    Windows 11
To get a member notified of a question directed to them use their name and precede it with the @ symbol, e.g. @Berton.
 

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

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
Because I was anxious to see what it would do, I clicked on that link.
This is what I got:

003271.webp

Translated:
We're sorry. You don't have access to this document because it doesn't meet our Terms of Service. You can find more information about this topic in the Google Drive Help Center.

I do have Google Drive myself, so that should not have been the reason for not having no access. I think it might be because it's an exe file (if that's the case, can't check it).
 

My Computer

System One

  • OS
    Windows 11 Pro 24H2 26100.3476
    Computer type
    PC/Desktop
    Manufacturer/Model
    Build by vendor to my specs
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    MSI PRO B550M-P Gen3
    Memory
    Kingston FURY Beast 2x16GB DIMM DDR4 2666 CL16
    Graphics Card(s)
    MSI GeForce GT 730 2GB LP V1
    Sound Card
    Creative Sound Blaster Audigy FX
    Monitor(s) Displays
    Samsung S24E450F 24"
    Screen Resolution
    1920 x 1080
    Hard Drives
    1. SSD Crucial P5 Plus 500GB PCIe M.2
    2. SSD-SATA Crucial MX500-2TB
    PSU
    Corsair CV650W
    Case
    Cooler Master Silencio S400
    Cooling
    Cooler Master Hyper H412R with Be Quiet Pure Wings 2 PWM BL038 fan
    Keyboard
    Cherry Stream (wired, scissor keys)
    Mouse
    Asus WT465 (wireless)
    Internet Speed
    70 Mbps down / 80 Mbps up
    Browser
    Firefox 130.0
    Antivirus
    F-secure via Internet provider
    Other Info
    Router: FRITZBox 7490
    Oracle VirtualBox 7 for testing software on Win 10 or 11
Because I was anxious to see what it would do, I clicked on that link.
This is what I got:

View attachment 125749

Translated:
We're sorry. You don't have access to this document because it doesn't meet our Terms of Service. You can find more information about this topic in the Google Drive Help Center.

I do have Google Drive myself, so that should not have been the reason for not having no access. I think it might be because it's an exe file (if that's the case, can't check it).
Being curious and don't use Google, I looked and just got the same thing about the site.

1739895087836.webp
 

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
Because I was anxious to see what it would do, I clicked on that link.
This is what I got:

View attachment 125749

Translated:
We're sorry. You don't have access to this document because it doesn't meet our Terms of Service. You can find more information about this topic in the Google Drive Help Center.

I do have Google Drive myself, so that should not have been the reason for not having no access. I think it might be because it's an exe file (if that's the case, can't check it).

1) Google marks unknown .exe as danger and block these
2) When i tried to download from a clean profile (Vivaldi's private browsing) ,
i take a message "This file has been blocked because it contains a dangerous virus. It is only visible to its owner." from Google.
Anyway , please check it again at One Drive. I checked with the same way and was OK.
 

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
Anyway , please check it again at One Drive.
I just succesfully downloaded that file.
Have to test it later on, on my VirtualBox test system.
Never test any unknown app in my normal system directly.

I had that numlock problem as well, thought I solved it by a AutoHotkey string [SetNumLockState "On"] that always switches Numlock on at system start.
But often when returning from some VirtualBox snapshot into normal Windows, the numlock in that normal windows is off again and when I use the calculator after that, it does not function. Of course I activate numlock again, but would like to always have it on if possible.

So I'll see, thanks for the service!
 

My Computer

System One

  • OS
    Windows 11 Pro 24H2 26100.3476
    Computer type
    PC/Desktop
    Manufacturer/Model
    Build by vendor to my specs
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    MSI PRO B550M-P Gen3
    Memory
    Kingston FURY Beast 2x16GB DIMM DDR4 2666 CL16
    Graphics Card(s)
    MSI GeForce GT 730 2GB LP V1
    Sound Card
    Creative Sound Blaster Audigy FX
    Monitor(s) Displays
    Samsung S24E450F 24"
    Screen Resolution
    1920 x 1080
    Hard Drives
    1. SSD Crucial P5 Plus 500GB PCIe M.2
    2. SSD-SATA Crucial MX500-2TB
    PSU
    Corsair CV650W
    Case
    Cooler Master Silencio S400
    Cooling
    Cooler Master Hyper H412R with Be Quiet Pure Wings 2 PWM BL038 fan
    Keyboard
    Cherry Stream (wired, scissor keys)
    Mouse
    Asus WT465 (wireless)
    Internet Speed
    70 Mbps down / 80 Mbps up
    Browser
    Firefox 130.0
    Antivirus
    F-secure via Internet provider
    Other Info
    Router: FRITZBox 7490
    Oracle VirtualBox 7 for testing software on Win 10 or 11
I just succesfully downloaded that file.
Have to test it later on, on my VirtualBox test system.
Never test any unknown app in my normal system directly.

I had that numlock problem as well, thought I solved it by a AutoHotkey string [SetNumLockState "On"] that always switches Numlock on at system start.
But often when returning from some VirtualBox snapshot into normal Windows, the numlock in that normal windows is off again and when I use the calculator after that, it does not function. Of course I activate numlock again, but would like to always have it on if possible.

So I'll see, thanks for the service!

I created a bat file for this job. Then i wanted to run it always without opening a window.
So i compiled with the Slimm Bat to exe converter.
So , its 100% safe. :-)
 

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
So , its 100% safe.
Even them I will first test it on a separate (virtual) system, that I can just shut down to end anything that has happened to the system.
That's a habit I have since having some bad experiences with testing apps that took over my system or parts of it.

BTW. The file is called 'NumLockOff.exe' , so I suppose it does the opposite from what I would like to achieve.
Is that right? Or is it just a name?
 

My Computer

System One

  • OS
    Windows 11 Pro 24H2 26100.3476
    Computer type
    PC/Desktop
    Manufacturer/Model
    Build by vendor to my specs
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    MSI PRO B550M-P Gen3
    Memory
    Kingston FURY Beast 2x16GB DIMM DDR4 2666 CL16
    Graphics Card(s)
    MSI GeForce GT 730 2GB LP V1
    Sound Card
    Creative Sound Blaster Audigy FX
    Monitor(s) Displays
    Samsung S24E450F 24"
    Screen Resolution
    1920 x 1080
    Hard Drives
    1. SSD Crucial P5 Plus 500GB PCIe M.2
    2. SSD-SATA Crucial MX500-2TB
    PSU
    Corsair CV650W
    Case
    Cooler Master Silencio S400
    Cooling
    Cooler Master Hyper H412R with Be Quiet Pure Wings 2 PWM BL038 fan
    Keyboard
    Cherry Stream (wired, scissor keys)
    Mouse
    Asus WT465 (wireless)
    Internet Speed
    70 Mbps down / 80 Mbps up
    Browser
    Firefox 130.0
    Antivirus
    F-secure via Internet provider
    Other Info
    Router: FRITZBox 7490
    Oracle VirtualBox 7 for testing software on Win 10 or 11
Even them I will first test it on a separate (virtual) system, that I can just shut down to end anything that has happened to the system.
That's a habit I have since having some bad experiences with testing apps that took over my system or parts of it.

BTW. The file is called 'NumLockOff.exe' , so I suppose it does the opposite from what I would like to achieve.
Is that right? Or is it just a name?

You could rename it , with your selection. :-)
 

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

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
I indeed tried it and it did switch Numlock on, so I renamed the exe file (for myself of course).
Because I did not yet put it in the Task Scheduler, it is showing a UAC screen every time I use the exe.
That would be cured if I would put it in the Task Scheduler (I suppose).

But unfortunately, at the moment for some reason I can't reproduce the problem with Numlock going to off while returning from Virtual Box to normal Windows. It stays on when in normal Windows while I purposely swithed it off off in Virtual Box. So it's no use for me trying any further now, my AutoHotkey script is doing the same: unlocking at system (re)start. And I did not have any problems with Numlock after a sleep 'session'.

If I ever would find out that the 'problem' is happening again, I will go on testing your little app, I saved it with my existing apps.

Thanks anyway! (y)
 

My Computer

System One

  • OS
    Windows 11 Pro 24H2 26100.3476
    Computer type
    PC/Desktop
    Manufacturer/Model
    Build by vendor to my specs
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    MSI PRO B550M-P Gen3
    Memory
    Kingston FURY Beast 2x16GB DIMM DDR4 2666 CL16
    Graphics Card(s)
    MSI GeForce GT 730 2GB LP V1
    Sound Card
    Creative Sound Blaster Audigy FX
    Monitor(s) Displays
    Samsung S24E450F 24"
    Screen Resolution
    1920 x 1080
    Hard Drives
    1. SSD Crucial P5 Plus 500GB PCIe M.2
    2. SSD-SATA Crucial MX500-2TB
    PSU
    Corsair CV650W
    Case
    Cooler Master Silencio S400
    Cooling
    Cooler Master Hyper H412R with Be Quiet Pure Wings 2 PWM BL038 fan
    Keyboard
    Cherry Stream (wired, scissor keys)
    Mouse
    Asus WT465 (wireless)
    Internet Speed
    70 Mbps down / 80 Mbps up
    Browser
    Firefox 130.0
    Antivirus
    F-secure via Internet provider
    Other Info
    Router: FRITZBox 7490
    Oracle VirtualBox 7 for testing software on Win 10 or 11
'Most new-within-last-10-years hardware has an "Enable Numlock' in the BIOS.
For those that do not:

Code:
Windows Registry Editor Version 5.00

[HKEY_USERS\.DEFAULT\Control Panel\Keyboard]
"InitialKeyboardIndicators"="2147483650"
 

My Computer

System One

  • OS
    W11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Gigabyte
    CPU
    i7-12700
    Motherboard
    B760M G P WIFI DDR4
    Memory
    128GB DDR4
    Graphics Card(s)
    NVIDIA GeForce GTX 1050Ti, 4GB discrete memory
    Sound Card
    Realtek HD switching output between each monitor, a soundbar, headphones, earphones
    Monitor(s) Displays
    2 Vizio 40" D-series LED Smart TV in Monitor-Mode
    Screen Resolution
    1080p 1920 x 1080
    Hard Drives
    Internal: Bootdrive WD_Black SN850X Gen4 NVMe 1TB SSD; secondary WD_Black SN770 NVMe SSD GAME DRIVE 2 TB PCI Gen 4 x4
    External: 2 Seagate 6TB Backup Hubs, 2 Seagate 6TB Expansion Drives
    NAS: WD EX2 Ultra 16TB Cloud Server, with WD 8TB HD attached
    PSU
    ATX - RM750e-Modular
    Case
    CORSAIR 4000D AIRFLOW Tempered Glass Mid-Tower ATX Case
    Cooling
    Laminar CPU Cooler plus two CORSAIR 120mm AirGuide fans, utilizing anti-vortex vanes
    Keyboard
    Logitech K740 Illuminated Keyboard
    Mouse
    LogiTech M720 Triathlon Multi-3-Device BT & Wireless
    Internet Speed
    1 Gbps
Code:
@echo off
POWERSHELL [CONSOLE]::NumberLock | FIND /I "FALSE">NUL&&POWERSHELL ($WSH = New-Object -ComObject WScript.Shell)-AND($WSH.SendKeys('{NUMLOCK}'))>NUL

save as a .bat file. use task scheduler to run it every however many minutes you want. if the state is "off" it will toggle it "on". if it is already on, it will leave it on.

credit.. i dont remember. some reddit post lol
 

My Computer

System One

  • OS
    Windows 11 Pro
'Most new-within-last-10-years hardware has an "Enable Numlock' in the BIOS.
For those that do not:
The problem at hand isn't forcing Numlock when you boot Windows. It's the known fact that Windows resets it when resuming from sleep mode.
 

My Computer

System One

  • OS
    Windows 7
Code:
@echo off
POWERSHELL [CONSOLE]::NumberLock | FIND /I "FALSE">NUL&&POWERSHELL ($WSH = New-Object -ComObject WScript.Shell)-AND($WSH.SendKeys('{NUMLOCK}'))>NUL

save as a .bat file. use task scheduler to run it every however many minutes you want. if the state is "off" it will toggle it "on". if it is already on, it will leave it on.

credit.. i dont remember. some reddit post lol
More the task scheduler should run on a "wake from sleep" event trigger.
 

My Computer

System One

  • OS
    Windows 7
i had an issue after installing 24h2 initially where it would randomly shut off numlock (while i was using my pc). i set that task to run every 10 min and it worked for me. but after jan cumulative update for 24h2 i disabled the task and it has been back to normal since. why wake from sleep?
 

My Computer

System One

  • OS
    Windows 11 Pro

My Computers

System One System Two

  • OS
    .. Debian 13 'Testing' .. Windows 11 24H2 Home
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP 24" AiO
    CPU
    Ryzen 7 5825u
    Motherboard
    HP
    Memory
    64GB DDR4 3200
    Graphics Card(s)
    Ryzen 7 5825u
    Sound Card
    RealTek
    Monitor(s) Displays
    24" HP AiO
    Hard Drives
    1TB WD Blue SN580 M2 SSD Partitioned.
    2x 1TB USB HDD External Backup/Storage.
    Internet Speed
    900MB full fibre
    Browser
    Firefox ESR & Thunderbird
    Antivirus
    ClamAV TK
    Other Info
    Mainly Open Source Software
  • Operating System
    Ubuntu 22.04.5 LTS
    Computer type
    Laptop
    Manufacturer/Model
    Dell 13" Latitude 2017
    CPU
    i5 7200u
    Motherboard
    Dell
    Memory
    16GB DDR4
    Graphics card(s)
    Intel
    Sound Card
    Intel
    Monitor(s) Displays
    13" Dell Laptop
    Hard Drives
    250GB Crucial 2.5" SSD
    Mouse
    Gerenic 3 button
    Internet Speed
    WiFi only
    Browser
    FireFox
    Antivirus
    ClamAV TK
    Other Info
    Mainly Open Source Software
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.
 

My Computer

System One

  • OS
    Windows 7
Back
Top Bottom