Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4140
  • Last Modified:

run numlock on in group policy

is there anyway to turn numlock on in group policy so that numlock is on at logon?
0
bjv211
Asked:
bjv211
  • 5
1 Solution
 
LazarusCommented:
'xp_numlock_on.vbs - Sets Numlock to on at system boot.
'© Doug Knox - 10/09/2001

Option Explicit
On Error Resume Next

'Declare variables
Dim WSHShell, MyBox, p, p1, q1, t, itemtype
Dim jobfunc

'Set the Windows Script Host Shell and assign values to variables
Set WSHShell = WScript.CreateObject("WScript.Shell")
p = "HKEY_USERS\.Default\Control Panel\Keyboard\InitialKeyboardIndicators"
p1 = "HKEY_CURRENT_USER\Control Panel\Keyboard\InitialKeyboardIndicators"
itemtype = "REG_DWORD"
q1 = 2

'Describe the funtion of the script for a dialog box

jobfunc = "NumLock will be on at boot up."

'This section writes the correct values to the Registry

WSHShell.RegWrite p, q1
WSHShell.RegWrite p1, q1

t = "Confirmation"
MyBox = MsgBox (jobfunc, 4096, t)
0
 
LazarusCommented:
Sorry I should have explained. This is a VBS script. You would use that in your client login script.
0
 
LazarusCommented:
Also another note, this will also set the client to always have numlock on because it's setting a registery key. Run once is all it needs.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LazarusCommented:
This will work better if you don't want a registery hack. Still used in a VBS script though:

set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys "{NUMLOCK}"
0
 
bjv211Author Commented:
i'm not familiar with vbs, do i just drop this in a notepad and save as vbs and run as startupscript?
0
 
LazarusCommented:
Yes, exactly.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now