I'm attemping to change the typematic rate via reg key on 30 Windows 7 32bit computers. I found the reg key :


[HKEY_USERS\.DEFAULT\Control Panel\Keyboard]

 I configured the script as follows:

Script Text:

reg.exe  ADD ["HKEY_USERS\.DEFAULT\Control Panel\Keyboard"]

I named the script, typematic.bat


When I run the script I get the following errors in the error logs.

Started: 2012/08/02 14:37:36
Finished: 2012/08/02 14:38:08
Elapsed Time: 32 second
Status: 3

Output Log

Running: scripts/59/script.bat 

Activity Log

2012-08-02 14:37:36: Alert not enabled, moving to next phase....
2012-08-02 14:37:44: Sending script script.bat to client....
2012-08-02 14:37:51: Script sent
2012-08-02 14:37:51: Executing script....
2012-08-02 14:38:08: Error 1 received while executing script


Anyone have any ideas?


Thanks in advance.

Answer Summary:
0 Comments   [ - ] Hide Comments


Please log in to comment

Community Chosen Answer



I've found the easiest way to do reg keys is this. Create your keys on a test machine. Export those keys to a reg file. Using Kscripting upload that reg file as a dependency. Then "On Success" run a batch file with regedit /s yourreg.reg. 

You might also want to try running as logged in user since by default these scripts are ran as SYSTEM. 

You will probably also need to utilize active setup to get these keys in their properly.

Answered 08/03/2012 by: dugullett
Red Belt

  • Note:
    The logged in user may not have rights to modify default hive.
Please log in to comment
Answer this question or Comment on this question for clarity


  • You can push this out with a k1000 script also
Please log in to comment

start /wait reg load HKU\temphive c:\users\default\ntuser.dat
start /wait reg add "HKU\temphive\Control Panel\Keyboard" /v KeyboardDelay /d 2 /f
start /wait reg add "HKU\temphive\Control Panel\Keyboard" /v KeyboardSpeed /d 20 /f

start /wait reg add "HKU\temphive\Control Panel\Keyboard" /v InitialKeyboardIndicators /d 2147483648 /f
start /wait reg unload HKU\temphive

Answered 08/02/2012 by: SMal.tmcc
Red Belt

  • I am assuming the key type all are string value otherwise you will need to also add the key type to the lines
  • This script completes successfully but does not make the changes to the registry.
Please log in to comment

Can You set these registry values by changing the Keyboard System Setting thru the Windows Control PAnel?  Or, do You see an access error.  Setting these registry values may require a certain level of privilege or access

Answered 08/03/2012 by: DavidAshelman
Senior Yellow Belt

  • every user would need to do this manually. And yes modifying default's hive would require admin priv to get to the file, during a push or install it runs as system so these can be made.
Please log in to comment
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja