Hey all,

I want to change the default Numlock state on our PC's
I use this script

'
' Enable NumLock for NON portables
'
strKeyPath = "Control Panel\Keyboard"
strEntryName = "InitialKeyboardIndicators"
strValue = "2"
oReg.SetStringValue &H80000001,strKeyPath,strEntryName,strValue

strKeyPath = ".default\Control Panel\Keyboard"
strEntryName = "InitialKeyboardIndicators"
strValue = "2"
oReg.SetStringValue &H80000003,strKeyPath,strEntryName,strValue

The Current User setting is changed, but not when the PC starts.
I can't seem to change the Default User setting...
What is wrong?

Marc

RE: Changing Numlock state by anonymous

anonymous
Wed Jan 21 07:56:09 CST 2004

From what i know.. the default state comes from the bios.. so if you find a way to modify that state then it should solve your problem.

You could place a small app in the startup folder which turns off the Numlock on every login.. Not sure how appropiate that is but it may be some use.

Kev..

RE: Changing Numlock state by michmo

michmo
Thu Jan 22 14:54:11 CST 2004

Hi Marc,

I think this article has your answer.
154529 How to Enable the NUM LOCK Key for the Logon Screen
http://support.microsoft.com/?id=154529

Here's an excerpt:
1. Run Registry Editor (Regedt32.exe).
2. Navigate to HKEY_USERS\.Default\Control Panel\Keyboard.
3. Change the value for InitialKeyboardIndicators from 0 to 2.

The article also references some related articles.
217884 NUMLOCK Setting Reset After Logging off Terminal Server
http://support.microsoft.com/?id=217884

262625 How to Set the NUM LOCK State at Logon Using a Logon Script
http://support.microsoft.com/?id=262625

Does this answer your question?

Thank you, Mike
Microsoft, ASP.NET Support Professional

Microsoft highly recommends to all of our customers that they visit the
http://www.microsoft.com/protect site and perform the three straightforward
steps listed to improve your computer?s security.

This posting is provided "AS IS", with no warranties, and confers no rights.


--------------------
> From: "MDS" <abc@abc.com>
> Subject: Changing Numlock state
> Date: Wed, 21 Jan 2004 09:37:21 +0100
> Lines: 25
> X-Priority: 3
> X-MSMail-Priority: Normal
> X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> Message-ID: <#YuaLn$3DHA.1728@TK2MSFTNGP09.phx.gbl>
> Newsgroups: microsoft.public.scripting.vbscript
> NNTP-Posting-Host: 212-123-14-84.ifiber.telenet-ops.be 212.123.14.84
> Path:
cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFTNGP08
phx.gbl!TK2MSFTNGP09.phx.gbl
> Xref: cpmsftngxa07.phx.gbl microsoft.public.scripting.vbscript:144642
> X-Tomcat-NG: microsoft.public.scripting.vbscript
>
> Hey all,
>
> I want to change the default Numlock state on our PC's
> I use this script
>
> '
> ' Enable NumLock for NON portables
> '
> strKeyPath = "Control Panel\Keyboard"
> strEntryName = "InitialKeyboardIndicators"
> strValue = "2"
> oReg.SetStringValue &H80000001,strKeyPath,strEntryName,strValue
>
> strKeyPath = ".default\Control Panel\Keyboard"
> strEntryName = "InitialKeyboardIndicators"
> strValue = "2"
> oReg.SetStringValue &H80000003,strKeyPath,strEntryName,strValue
>
> The Current User setting is changed, but not when the PC starts.
> I can't seem to change the Default User setting...
> What is wrong?
>
> Marc
>
>
>


Re: Changing Numlock state by Torgeir

Torgeir
Thu Jan 22 15:04:42 CST 2004

"Mike Moore [MSFT]" wrote:

> Hi Marc,
>
> I think this article has your answer.
> 154529 How to Enable the NUM LOCK Key for the Logon Screen
> http://support.microsoft.com/?id=154529
>
> Here's an excerpt:
> 1. Run Registry Editor (Regedt32.exe).
> 2. Navigate to HKEY_USERS\.Default\Control Panel\Keyboard.
> 3. Change the value for InitialKeyboardIndicators from 0 to 2.

Here is an excerpt of the OP's script

strKeyPath = ".default\Control Panel\Keyboard"
strEntryName = "InitialKeyboardIndicators"
strValue = "2"
oReg.SetStringValue &H80000003,strKeyPath,strEntryName,strValue

To me, it looks like he has done exactly that registry update...


--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter