May 13th, 2014

PowerTip: View and Keep Results of PowerShell Job

Doctor Scripto
Scripter

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

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.

Feedback