The registry settings to control the behavior of NumLock are the following:
Registry Settings
User Key: [HKEY_USERS\.DEFAULT\Control Panel\Keyboard]
Value Name: InitialKeyboardIndicators
Data Type: REG_SZ (String Value)
Value Data: 0 = NUMLOCK is turned off after logon, 2 = NUMLOCK is turned on after logon
And in case you want to control it through a script file, the script is:
set WshShell = CreateObject("WScript.Shell") WshShell.SendKeys "{NUMLOCK}" |
In the previous script you can change the "{NUMLOCK}" with "{CAPSLOCK}" to control the relevant key.