Quantcast
Channel: Ivanti User Community : All Content - Patch Manager
Viewing all articles
Browse latest Browse all 1121

Custom definition - Patch install commands

$
0
0

Hi there,

is there any detailed documentation on the different command types for custom definitions?

I'm currently struggling with getting a custom definition to work the way I'd expect it to.

 

To "install" my custom definition I need to run a PowerShell script, which takes about 30-60min. to finish. Obviously I'd like to have its results in the Security and Patch information overview after completion, be it success or failure and possibly even more detailed statuses stating why it failed.

 

Using the Run script command type seemed like the obvious choice for this use case as it would allow the script's contents to be part of the custom definition. Unfortunately using this command type doesn't allow specifying a custom timeout which always results in an error, as PowerShell still runs when LANDesk asks for an exit code. PowerShell returns 259 (STILL_ACTIVE) which doesn't equal 0 and thus is interpreted as failure.

The second choice in command types was Execute a program which allows for a custom timeout to be configured, which is a pro. Instead of including the PowerShell script into the custom definition it had to be provided as a file and listed as Additional File, which is a small con. What's still irritating about this command type is the RETCODES setting, as I can't find any detailed information about what it actually does.

Do I need to provide all the return codes I deem to indicate a success of my script?

Do I need to provide all the return codes my script might return, no matter if they indicate success or failure?

Although my script returned the only return code I set for RETCODES it wasn't logged as success. What might have caused this?

 

I'd be glad if anyone could either answer my questions or at least point me to some hidden documentation I couldn't seem to find.

 

Best regards

Dominik Mönks


Viewing all articles
Browse latest Browse all 1121

Trending Articles



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