Solved

run numlock on in group policy

Posted on 2006-11-07
6
4,116 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
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Screen Mirroring 7 88
server DNS address could not be found 22 291
How to restore security permissions on a file server 4 70
How to rollback Windows updates with SCCM? 6 76
So you have two Windows Servers and you have a directory/folder/files on one that you'd like to mirror to the other?  You don't really want to deal with DFS or a 3rd party solution like Doubletake. You can use Robocopy from the Windows Server 200…
A quick step-by-step overview of installing and configuring Carbonite Server Backup.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

713 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