/build/static/layout/Breadcrumb_cap_w.png

KACE Product Support Question


Run Task as system while another task as logged in user in Kscript

03/21/2017 550 views

Hi people.

I have an install for "Adobe acrobat DC" that I am deploying via a script.

The deployment is made as the "local system".... which is how I need it to

be deployed.

But I have a second task , which is making changes to the registry of the installation.

Just a few preferences that need to be tweaked in the settings.

I do this with "reg" files, which need to be deployed as logged in user

in the "HKCU" part of the registry.

When I try to run the batch file, it doesn't work because the

script is running as system and therefore does not have access to "HKCU".

How can I tell the second task to run as the currently logged on user.

All I need is to run this bat file....

regedit.exe /S spelling.reg
regedit.exe /S Units.reg

The "Reg" files have been uploaded as dependancies.

Tested and work when I deploy them as "logged in user"...... (in a separate script just to test).,...

0 Comments   [ + ] Show comments

Comments


All Answers

1
You could have the first script execute the second script with runkbot:
Answered 03/21/2017 by: chucksteel
Red Belt

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