You can use the command results to display the exit codes and see whether the command was executed successfully.
Symptoms
 In the admin console, you can view the listed command result, but it can’t be exported, and sometimes it requires you to view the bulk command result without scrolling the command result in the console.
Resolution
You can leverage the PowerShell command to view the command results in a CSV file.
- Install PowerShell if you're on Mac or Linux and configure the ̽»¨´óÉñ PowerShell module. See this article to learn more.
- Connect to the ̽»¨´óÉñ PowerShell module using the API key.
- Export all command results to CSV.
- After authenticating the PowerShell Module, run the following command in terminal to export all command results to a single CSV file.
Get-JCCommandResult | Get-JCCommandResult -byID | Export-Csv CommandResults.csv
- After authenticating the PowerShell Module, run the following command in terminal to export all command results to a single CSV file.
- You can also export specific command results to a CSV with the following command, which will capture all the results associated with the specific command ID (in this case for 66716ec3259576f47de7a07e which is the Apple ID command).
Get-JCCommandResult -CommandID 66716ec3259576f47de7a07e | Export-CSV appletestid123.csv
Note:
- The command ID can be found in the URL field of the Admin Portal when you open a command:
https://console.jumpcloud.com/#/commands/66716ec3259576f47de7a07e/details - The CSV file will be saved to the current working directory, which can be changed by amending the export path.
Back to Top