pskill是一個用於殺除進程的程式。
Running PsKill with a process ID directs it to kill the process of that ID on the local computer. If you specify a process name PsKill will kill all processes that have that name.
Usage: pskill [- ] [-t] [\\computer [-u username] [-p password]] <process name | process id>
- | Displays the supported options. |
-t | Kill the process and its descendants. |
\\computer | Specifies the computer on which the process you want to terminate is executing. The remote computer must be accessible via the NT network neighborhood. |
-u username | If you want to kill a process on a remote system and the account you are executing in does not have administrative privileges on the remote system then you must login as an administrator using this command-line option. If you do not include the password with the -p option then PsKill will prompt you for the password without echoing your input to the display. |
-p password | This option lets you specify the login password on the command line so that you can use PsList from batch files. If you specify an account name and omit the -p option PsList prompts you interactively for a password. |
process id | Specifies the process ID of the process you want to kill. |
process name | Specifies the process name of the process or processes you want to kill. |
pskill是一個殺除進程的程式。
它的使用格式為:
pskill [\\遠程機器ip [-u username] [-p password]] <process name | process id>
假設我在遠程機器ip有一個賬號,賬號名是:abc 密碼是:123
比如要殺除一個pid號為999,名稱為srm.exe的進程可以打:
pskill \\遠程機器ip -u abc -p 123 999 或 pskill \\遠程機器ip -u abc -p 123 srm