Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 2.0 » Stop-Job

Stop-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 »

Stop-Job

Short description
Stops a Windows PowerShell background job.

Syntax


Description
The Stop-Job cmdlet stops Windows PowerShell background jobs that are in progress. You can use this cmdlet to stop 
all jobs or stop selected jobs based on their name, ID, instance ID, or state, or by passing a job object to Stop-J
ob.

You can use Stop-Job to stop jobs that were started by using Start-Job or the AsJob parameter of Invoke-Command. Wh
en you stop a background job, Windows PowerShell completes all tasks that are pending in that job queue and then en
ds the job. No new tasks are added to the queue after this command is submitted. 

This cmdlet does not delete background jobs. To delete a job, use Remove-Job.