Tuesday 9 October 2018

windows 8 - How to have num lock enabled by default on log on screen?


I'm using a PIN code to log on my computer. However, Num ⇩ is always turned off, even if on before shutting down my computer. This is quite annoying as I always have to retype my PIN.


I've tried the suggestions here (same as here). But with no result.
If I don't enable num lock on log in screen and use the numbers above the normal keys, num lock turns on after log on. Then it's too late, unfortunately.


So, how can I make num lock enabled by default when logging in? Thanks.


Edit: While I still want to solve this, I've figured it is not such a big problem. I will need to press some key for the "enter PIN screen" to show, and using Num ⇩ works and enables num lock. But then, still annoying if the computer was only locked (with num lock on) and I turn it off, hehe.



Answer



Before logon, Windows will ignore the BIOS numlock setting for security reasons. In addition, Windows does not use the registry setting for num lock until after login. If you need numlock on before that, see How to Set the NUM LOCK State at Logon in Windows XP (Article is about Windows XP, but works for Windows 7, as well - I assume it is the same for Windows 8).


To do this, put in numlock.vbs:


set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys "{NUMLOCK}"

Then set it to run for the logon screen using Group Policy. You just copy numlock.vbs into the Group Policy folder. The default path for a local logon script is %SystemRoot%\System32\GroupPolicy\User Computer\Scripts\Logon.


To get the script to run (quoted from http://support.microsoft.com):




  1. Click Start, click Run, type mmc, and then click OK to start Microsoft Management Console (MMC).

  2. On the Console menu, click Add/Remove Snap-in.

  3. Click Add, click Group Policy, and then click Add.

  4. Click the appropriate Group Policy Object. The default selection is the local computer, but you can click Browse and select a different Group Policy Object.

  5. Click Finish, click Close, and then click OK.

  6. In the Group Policy Management snap-in, locate the User Configuration\Windows Settings\Scripts (Logon/Logoff) folder. (You can substitute the Computer Configuration folder for the User Configuration folder.)

  7. Double-click the Logon script object, click Add, click Browse, and then click the Numlock.vbs script.

  8. Click Open, and then click OK.

  9. Click OK, and then close the Group Policy Management console.





You can set the num lock default in the registry, but it only applies after logging on.


This involves setting InitialKeyboardIndicators to 2 in [HKEY_USERS.DEFAULT\Control Panel\Keyboard].


enter image description here


NB: Setting InitialKeyboardIndicators will not work on Windows 8 if you are signed in with a Microsoft Account. It only works with a local account.


Sources:



No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...