PowerTip: View and Keep Results of PowerShell Job

Doctor Scripto

Summary: Learn how to view and keep the results of a Windows PowerShell job.

Hey, Scripting Guy! Question  Every time I view the results of a Windows PowerShell job, I lose them. How can I save the results for viewing later?

Hey, Scripting Guy! Answer Use the –Keep parameter on the Receive-Job cmdlet. In this example, I look at the results from Job 2,
          and keep the results for later use:

Receive-Job -id 2 -Keep

0 comments

Discussion is closed.

Feedback usabilla icon