Quantcast
Channel: Ivanti User Community : All Content - General
Viewing all articles
Browse latest Browse all 415

PowerShell Reboot if Required

$
0
0

Hi

 

I'd like to run some PowerShell scripts in a scheduled task with a "Detect whether reboot is needed" set.

 

But what would I need to put in the script so that Ivanti will pick up that the script requires a reboot. (or not)

 

So basically the script finishes in susch a way that the scheduled task know whether a reboot is required.

 

For example you may say something like:

 

Is service a started

 

If no set flag for reboot

 

If yes set flag for No reboot

 

Thanks

 

Daren


Viewing all articles
Browse latest Browse all 415

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>