Solve a problem where Numlock is enabled in Microsoft Windows at startup with these steps.
Method 1 – Registry Setting
- Hold the Windows Key then press “R” to bring up the Run dialog box.
- Type “regedit“, then press “Enter“.
- Navigate to the following location in the registry:
- HKEY_USERS
- .Default
- Control Panel
- Keyboard
- 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"
SOURCE: https://www.technipages.com/enable-disable-numlock-windows-startup