Sysinternals/Pstools/pssuspend
Jump to navigation
Jump to search
You are here: | pssuspend
|
Description
PsSuspend is part of the PsTools toolkit developed by Sysinternals. PsSuspend suspends or resumes processes on local or remote NT system.
Installation
PsShutdown is part of the PsTools suite. To install it, please refer to this section.
Usage
Syntax
Usage: pssuspend [-r] [\\RemoteComputer [-u Username [-p Password]]] <process Id or name>
Options
- -r
- Resume.
- -u
- Specifies optional user name for login to remote computer.
- -p
- Specifies optional password for user name. If you omit this you will be prompted to enter a hidden password.
Example
Let's identify the process ID on the remote machine that corresponds to the httpd (apache) service:
C:\pstools>pslist \\192.168.1.27 -u pilou -p oopsoops | find "http" pslist v1.3 - Sysinternals PsList Copyright (C) 2000-2012 Mark Russinovich Sysinternals - www.sysinternals.com httpd 584 8 4 140 38016 0:00:01.968 0:06:28.651 httpd 1996 8 153 289 41300 0:00:02.015 0:06:24.651
Let's suspend the process:
C:\pstools>pssuspend \\192.168.1.27 -u pilou -p oopsoops 1996 PsSuspend v1.06 - Process Suspender Copyright ® 2001-2003 Mark Russinovich Sysinternals Process 1996 on suspended 192.168.1.27....
Now let's resume the process:
C:\pstools>pssuspend -r \\192.168.1.27 -u pilou -p oopsoops 1996 PsSuspend v1.06 - Process Suspender Copyright ® 2001-2003 Mark Russinovich Sysinternals Process 1996 on resumed 192.168.1.27....