Use the command-line options
Besides executing commands via the Ivanti Automation Web API, you can also perform Management Portal actions from the command line.
Configuration
At Setup > Environment, download the ZIP-file, including the executable (wmc.exe) and configuration file (wmc.exe.config) of the Management Portal, and execute one of the following command-line options:
- Create a Building Block for a Run Book
- Export Job results
- Import Building Blocks
- Install Management Portal
- Schedule Jobs
Return Code
When you execute an action in the Management Portal from the command line, you get a return code reflecting the status of the relevant action. The status return is given when started from a Microsoft Windows Batch/PowerShell script, or when started from the Task Command Execute. Overview of return codes:
Code |
Explanation |
Applicable action |
0 |
Success |
general |
1 |
Failed |
general |
2 |
Aborted |
general |
3 |
Canceled |
general |
4 |
Completed with errors |
general |
5 |
Failed to login. This code will be returned if the global Password Security Policy has not been met. |
general |
14 |
Object type does not exist. |
createbb |
15 |
Object GUID does not exist or is invalid. |
createbb |
16 |
Invalid destination file. |
createbb |