Contact Info

Crumbtrail » Administration » Powershell » Powershell 2.0 » Wait-Process

Wait-Process - Powershell 2.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »


Short description
Waits for the processes to be stopped before accepting more input.

Wait-Process [-Id] <Int32[]> [[-Timeout] <int>] [<CommonParameters>]

Wait-Process -InputObject <Process[]> [[-Timeout] <int>] [<CommonParameters>]

Wait-Process [-Name] <string[]> [[-Timeout] <int>] [<CommonParameters>]

The Wait-Process cmdlet waits for one or more running processes to be stopped before accepting input.  In the Windo
ws PowerShell console, this cmdlet suppresses the command prompt until the processes are stopped. You can specify a
 process by process name or process ID (PID), or pipe a process object to Wait-Process. 

Wait-Process works only on processes running on the local computer.