Turn on Number Lock by Login Screen and Default Users

Copy following code to notepad and save it as numlock.bat, then run it with administrator right.

@echo off
:: For Login Screen
reg add "HKEY_USERS\.DEFAULT\Control Panel\Keyboard" /v InitialKeyboardIndicators /t REG_SZ /d 2 /f
:: For Default Profile
reg load HKLM\DefaultProfile %SystemDrive%\Users\Default\NTUSER.DAT
reg add "HKEY_LOCAL_MACHINE\DefaultProfile\Control Panel\Keyboard" /v InitialKeyboardIndicators /t REG_SZ /d 2 /f
reg unload HKLM\DefaultProfile
exit
Advertisements
This entry was posted in Windows. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s