The details are(as of my last test):

On Success
Launch “SYS\Cmd” with params “/C powershell -nologo -executionpolicy bypass -noprofile -file $(KACE_DEPENDENCY_DIR)/opsview_downtime-2h_NOWv1.0.ps1”.

I have set the script to login as an admin level user. The script just performs some web requests to set downtime on our monitoring server before patching starts.

I have have also tried running as Local System and get the same error.

0 Comments   [ - ] Hide Comments


Please log in to comment

Community Chosen Answer


What i usually do is run my powershell scripts as shell script. You can upload your ps1 file as a dependency. Then all you need for the script text is:
powershell.exe -nologo -executionpolicy bypass -noprofile -file opsview_downtime-2h_NOWv1.0.ps1

Just make sure you change the script name from script.sh to script.bat. Seems to work pretty well for me.
Answered 03/24/2012 by: dchristian
Red Belt

  • Hmm, I am still getting the same error
  • Go to the script in KACE and in Scheduling check Allow Run While Logged Off and sace
  • Thank you dchristian, exactly what i needed for my domain join script.
Please log in to comment
Answer this question or Comment on this question for clarity



I thought I had tested a script to run without this but another box gave me the error you mention.  Check the box for Allow Run While Logged Off.

My script is a boot up run script, so, you would naturally think it wasn't necessary.

Answered 03/05/2013 by: worzie
Third Degree Green Belt

Please log in to comment