The Get-JobStatus command enables you to view the status of the queued, running, and finished jobs.
Get-JobStatus-Server <Exchange_server_name>-ShowChildJobs <True|False>common parameters
Description
Specify the server name to view a particular job status. This command also supports the following common parameters:
- -Debug (-db)
- -ErrorAction (-ea)
- -ErrorVariable (-ev)
- -OutBuffer (-ob)
- -OutVariable (-ov)
- -Verbose (-vb)
- -Confirm
To learn more about common parameters, see help about_ubiquitous_parameters.
- -Server <Exchange_server_name>
- Short name: svr
- Specifies the name of the Exchange server for which you monitor the job status.
- If you do not specify this parameter, the name of the server that runs this cmdlet becomes the default host name. -Server is an optional parameter
- -ShowChildJobs <True|False>
- Short name: cj
- Displays all the child jobs of the running and the finished jobs.
- -ShowChildJobs is an optional parameter.
Example: Displaying all jobs
This command displays all the jobs that are handled by the Exchange server Exchange1.
Get-JobStatus -Server Exchange1
Example: Displaying child jobs
This command displays all the child jobs of the running jobs, the finished jobs, and the parent-level jobs that are managed by the Exchange server Exchange1.
Get-JobStatus -Server Exchange1 -ShowChildJobs