We had a need to set the NUMLOCK for a number of computers. They us an ERP program, and found that while Windows was set to default it to ON, it didn't always do so.
So - enter Registry modification using CMD and pushed either by script or ScreenConnect
Using my computer as a base, I found and change the key for setting NumLock.
Computer\HKEY_USERS\S-1-5-18\Control Panel\Keyboard
And set InitialKeyboardIndicators
to 2

Next - perform the necessary export of the key, alternately; this is the text from just that key export:
Windows Registry Editor Version 5.00
[HKEY_USERS\.DEFAULT\Control Panel\Keyboard]
"InitialKeyboardIndicators"="2"
"KeyboardDelay"="1"
"KeyboardSpeed"="31"
File was saved as SetNumLock.reg
.
For testing, I set on my computer, and from CMD ran
regedit.exe /s setnumlock.reg
However for deployment you might use:
regedit.exe /s \\server\share\setnumlock.reg
Links used:
Set NumLock
Set keys using CMD