PowerTip: Identify Completed PowerShell Jobs with Data yet to be Received

Doctor Scripto

Dr Scripto

Summary: Doctor Scripto quickly shows how to identify Completed Jobs in PowerShell which have yet to have the data Received

Hey Doctor Scripto, How can I identify jobs which already completed but I haven’t done a Receive-Job on to get the data?

You can do this with the Get-Job Cmdlet by targeting the -ChildJobState and -HasMoreData like the following example

Get-Job -ChildJobState Completed -HasMoreData:$True

PowerShell, Doctor Scripto, PowerTip, Sean Kearney

Doctor Scripto
Dr Scripto

Scripter, PowerShell, vbScript, BAT, CMD

Follow Dr Scripto   

0 comments

Leave a comment