Contact Info

Crumbtrail » Administration » Powershell » Powershell 2.0 » Get-Job

Get-Job - Powershell 2.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »


Short description
Gets Windows PowerShell background jobs that are running in the current session.

Get-Job [-Command <string[]>] [<CommonParameters>]

Get-Job [[-InstanceId] <Guid[]>] [<CommonParameters>]

Get-Job [[-Name] <string[]>] [<CommonParameters>]

Get-Job [[-Id] <Int32[]>] [<CommonParameters>]

Get-Job [-State {NotStarted | Running | Completed | Failed | Stopped | Blocked}] [<CommonParameters>]

The Get-Job cmdlet gets objects that represent the background jobs that were started in the current session. You ca
n use Get-Job to get jobs that were started by using Start-Job, or by using the AsJob parameter of any cmdlet. 

Without parameters, a "Get-Job" command gets all jobs in the current session. You can use the parameters of Get-Job
 to get particular jobs.

The job object that Get-Job returns contains useful information about the job, but it does not contain the job resu
lts. To get the results, use the Receive-Job cmdlet.

A Windows PowerShell background job is a command that runs "in the background" without interacting with the current
 session. Typically, you use a background job to run a complex command that takes a long time to complete. For more
 information about background jobs in Windows PowerShell, see about_Jobs.