Change Numlock Status at Ctrl+Alt+Del Logon screen

Numlock status on a Windows computer is controlled from three places. The BIOS controls the numlock until Windows is booted. At the logon screen, the numlock status along with settings such as the screensaver are loaded from the .DEFAULT user profile. After a user logs on, the settings are loaded from that particular user’s profile.

This script prompts for a computer name and then changes the InitialKeyboardIndicators value so that the numlock is on at the Ctrl+Alt+Del logon screen.

Additional options for the value of InitialKeyboardIndicators:
0 – all indicators off
1 – Caps Lock on
2 – Num Lock on
4 – Scroll Lock on
3 – Caps Lock and Num Lock on
5 – Caps Lock and Scroll Lock on
6 – Num Lock and Scroll Lock on
7 – Caps Lock, Num Lock, and Scroll Lock on