| 18 June 2002 |
FindPROC() |
| Author | Radimus |
| Action | Returns the PID of the requested process. |
| Syntax | FindPROC ($proc, optional $computer, optional $terminate) |
| Parameters | $proc (Required / String) name of the process / exe $computer (Optional / String) name of the target computer.. if blank it assumes local pc $terminate (Optional / String) whether or not to kill the process. any non-zero/null is accepted |
| Remarks | Usefull to kill local proceses, or in an admin script against remote PCs. |
| Returns | pid of the requested process |
| Dependencies | WMI |
| Examples | |
| Source | |