Manami’s Translation Blog

2人の男児を育てながら在宅でIT翻訳をしています。育児ブログは別に開設しているので、主に翻訳や仕事に関することをつづっています。

PowerTip: データが未取得の完了した Windows PowerShell のジョブを特定する

PowerTip: データが未取得の完了した Windows PowerShell のジョブを特定する

Doctor Scripto

Dr Scripto

 

概要: Windows PowerShell でデータを取得していない完了したジョブを特定する方法を紹介します。

 A picture containing scissors  Description automatically generated

完了しているジョブのうち、Receive-Job コマンドレットを実行してデータを取得していないジョブを特定する方法を教えてください。

データを未取得のジョブは、次のように -ChildJobState と -HasMoreData を指定することで、Get-Job コマンドレットを使用して特定できます。

Get-Job -ChildJobState Completed -HasMoreData:$True

PowerShell, Doctor Scripto, PowerTip, Sean Kearney

 

devblogs.microsoft.com