Export Job results

You can export the Job results from the Management Portal unattended. This allows you to create an automated process to export the Job results as a back-up.

To do so, run the executable of the Management Portal (wmc.exe) from the command line and use the following parameters:

Additionally, you will need to edit the configuration file (wmc.exe.config)and provide the address of the API and the API key.

Parameter

Value

Functionality

-export2xml

 

 

/MasterJobGUID

<GUID>

or

@[MASTERJOBGUID]

 

/OverViewResult

 

Export overview results

/DetailedResult

 

Export detailed results

/ResultsPerAgent

 

  • Export results per Agent (existing files will be overwritten)
  • Only valid in combination with /DetailedResult
  • Output file names generated: Export_<Agent>.xml

/Destination=

RES Software\Workspace Manager

Save location

/WaitForJob

 

Wait for job to finish

/user=

-and-

/password=

<user>

-and-

<password>

The Ivanti Automation credentials to access the Console.

Example

"C:\Program Files (x86)\Ivanti\Automation\Console\WMC.exe" -export2xml /MasterJobGUID=@[MASTERJOBGUID] /OverviewResult /DetailedResult /WaitForJob /ResultsPerAgent /Destination=C:\Users\jsmith\Documents\Export.xml /user=jsmith /password=secret

  • When exporting the results of a Job, the Variable are included in the XML files for the Agents and/or Teams.
  • It is not possible to export the results of multiple Jobs.
  • You can only execute a command line that exports Job results on Agents on which a Console has been installed.
  • The function @[MASTERJOBGUID] cannot yet be used for Run Books.
  • If the global setting Limit Job Export has been set to Enabled, the export of Jobs is only allowed for Agents to which the administrative role of Console user grants access.