Solved

run numlock on in group policy

Posted on 2006-11-07
6
4,109 Views
Last Modified: 2012-06-21
is there anyway to turn numlock on in group policy so that numlock is on at logon?
0
Comment
Question by:bjv211
  • 5
6 Comments
 
LVL 20

Accepted Solution

by:
Lazarus earned 250 total points
ID: 17891030
'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
 
LVL 20

Expert Comment

by:Lazarus
ID: 17891037
Sorry I should have explained. This is a VBS script. You would use that in your client login script.
0
 
LVL 20

Expert Comment

by:Lazarus
ID: 17891066
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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 20

Expert Comment

by:Lazarus
ID: 17891080
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
 
LVL 1

Author Comment

by:bjv211
ID: 17891210
i'm not familiar with vbs, do i just drop this in a notepad and save as vbs and run as startupscript?
0
 
LVL 20

Expert Comment

by:Lazarus
ID: 17893386
Yes, exactly.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

by Batuhan Cetin Within the dynamic life of an IT administrator, we hold many information in our minds like user names, passwords, IDs, phone numbers, incomes, service tags, bills and the order from our wives to buy milk when coming back to home.…
Scenerio: You have a server running Server 2003 and have applied a retail pack of Terminal Server Licenses.  You want to change servers or your server has crashed and you need to reapply the Terminal Server Licenses. When you enter the 16-digit lic…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now