November 5th, 2014

PowerTip: Wait for PowerShell Job to Complete

Doctor Scripto
Scripter

Summary: Learn how to wait for a Windows PowerShell job to complete.

Hey, Scripting Guy! Question How can I use Windows PowerShell to wait for a job that I have run to complete?

Hey, Scripting Guy! Answer Use the Wait-Job cmdlet, and specify the job ID, for example:

Wait-Job –ID 5

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.