/build/static/layout/Breadcrumb_cap_w.png

Trouble setting Reg Key with K1100

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]
"KeyboardDelay"="1"
"KeyboardSpeed"="30"
"InitialKeyboardIndicators"="2147483648"


 I configured the script as follows:

Script Text:

reg.exe  ADD ["HKEY_USERS\.DEFAULT\Control Panel\Keyboard"]
"KeyboardDelay"="2"
"KeyboardSpeed"="20"
"InitialKeyboardIndicators"="2147483648"

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.


0 Comments   [ + ] Show comments

Answers (4)

Answer Summary:
Posted by: dugullett 12 years ago
Red Belt
3

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.


Comments:
  • Note:
    The logged in user may not have rights to modify default hive. - SMal.tmcc 12 years ago
Posted by: SMal.tmcc 12 years ago
Red Belt
2

Comments:
  • You can push this out with a k1000 script also - SMal.tmcc 12 years ago
Posted by: SMal.tmcc 12 years ago
Red Belt
2

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


Comments:
  • I am assuming the key type all are string value otherwise you will need to also add the key type to the lines - SMal.tmcc 12 years ago
  • This script completes successfully but does not make the changes to the registry. - davkenrem 12 years ago
Posted by: DavidAshelman 12 years ago
Senior Yellow Belt
1

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


Comments:
  • 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. - SMal.tmcc 12 years ago

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ