Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 3.0 » Wait-Process

Wait-Process - Powershell 3.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 »

Wait-Process

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

Syntax
Wait-Process [-Name] <String[]> [[-Timeout] <Int32>] [<CommonParameters>]
Wait-Process [-Id] <Int32[]> [[-Timeout] <Int32>] [<CommonParameters>]
Wait-Process [[-Timeout] <Int32>] -InputObject <Process[]> [<CommonParameters>]





Description
The Wait-Process cmdlet waits for one or more running processes to be stopped before accepting input.  In the Windows P
owerShell 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.