Solved

run numlock on in group policy

Posted on 2006-11-07
6
4,106 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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

This may not be a text book method to resolve VSS backup issues but it seemed to have worked on few of the Windows 2003 servers we had issues while performing a Volume Shadow Copy backup. If you have issues while performing a shadow copy backup usin…
Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
This video discusses moving either the default database or any database to a new volume.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

706 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