/build/static/layout/Breadcrumb_cap_w.png

Creating a reg change script

Hi,

I am looking to push out a reg change to HKEY_CURRENT_USER.

 

The reg keg key has been created and works fine when using registry editor. This has been tested when actually running on the workstation.

However when using the enforce registry setting to create within Kace it reports as succesfully completed (when running on a pc) but it does not actually add it to the workstation. Within the scripting section i have enabled it as an online Kscript and set it to run as the logged in user but it does not work.

The user it will run under will have registry changing rights.

 

Nay ideas why this may not be working and how to get it working?

 

Thanks in advance.


0 Comments   [ + ] Show comments

Answers (3)

Posted by: jknox 11 years ago
Red Belt
1

How are you setting up the script?  Are you calling a .reg file?

What operating system? (ex. Win7x64)

Posted by: muebel 11 years ago
10th Degree Black Belt
1

I would just have it run as system. Launch a program 

%systemroot%\system32\reg.exe

with params

add HKCU\SOFTWARE\Manufacturer\Title /v "KeyName" /t REG_DWORD /d "Data" /f

in "on success" field of a task.

You can have it run at user login by clicking the checkbox in Scheduling. There is no reason to have it run as user that I know of. 

Posted by: kwhatcher 11 years ago
Senior Yellow Belt
0

Can you provide the logs for the Kscript? 

Don't be a Stranger!

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

Sign up! or login

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