/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


Script wont run if no user logged in

06/27/2019 338 views

Hi all, 


I am new in this forum, hope get some insights from some that has experienced the following. 


I am trying to run a script that includes a registry key via Batch file. The script needs to run as the looged in user. When the user logged in, the script works like a charm. However if the user is logged off, the script just fails, even though I checked the box to "Run at next connection if off line." 

The XML file i believe should do the job, but it fails as well. 

<execute disconnected="false" logged_off="false">


I would imagine that Kace would wait until next logon to run the script. But it actually does not happen. 

Does anyone have a solution for it? 


0 Comments   [ + ] Show comments

Comments


All Answers

0

That may be a bug.  I think the "run on next connection if offline" is running when you connect not login.  That setting is assuming you are running as system and just does it when the machines starts since system is logged in.  If you look at the xml it does not change when you change the run as.


You uncheck both boxes and run as a scheduled job so it repeats on a schedule ( I use a cron that only runs during working hours for my repeators.

Either:

Create a smart label that finds the machines without the reg key change so as they get pushed the change and inventory updates they fall off the label

or

verify task - see if the key exists

if not remediate and set the key

Answered 06/27/2019 by: SMal.tmcc
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

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