Taskkill Command Bulk End Process

Source: Internet
Author: User

taskkill/f/im PjtPkgWeightDlg.exe End Process

Start "" "D:\PjtPkgWeightDlg.exe" startup program


At the command line, enter Taskkill/? You can see some introduction to this command.

Command syntax:

TASKKILL [/S system [/u username [/p [password]]]
{[/FI filter] [/pid ProcessID |/im imagename]} [/F] [/T]

Describe:
This command-line tool can be used to end at least one process.
You can end a process based on the process ID or image name.

Parameter list:
/S system Specifies the remote system to connect to.

/u [domain\]user Specifies which user context should be in
Execute this command.

/p [Password] specifies for the provided user context
Password. If omitted, prompt for input.

/f Specifies to forcibly terminate
Process.

/FI filter Specifies that the query is filtered into or filtered out of the
The task.

The/PID process ID specifies the
Pid.

/IM image name Specifies the process to terminate
The image name. wildcard character ' * '
Can be used to specify all image names.

/T Tree Kill: Terminates the specified process
And any child processes that are started from this.

/? Displays help/usage.

Filter:
Filter name valid operator valid value
-----------   ---------------           --------------
STATUS eq, ne run | No response
IMAGENAME eq, NE image name
PID eq, NE, GT, lt, GE, le PID value
Session eq, NE, GT, lt, GE, le session number
CPUTime eq, NE, GT, lt, GE, le CPU time, format
Hh:mm:ss.
HH-When,
MM-Clock, SS-Sec
Memusage eq, NE, GT, lt, GE, le memory used, in kilobytes
USERNAME eq, NE user name, formatted as
[Domain\]user
MODULES eq, NE DLL name
Services EQ, NE service name
WindowTitle eq, NE window title

Note: The wildcard ' * ' can be used with the/im switch only with a filter.

Note: Remote processes are always forced to terminate,
Whether or not the/F option is specified.

For example:
taskkill/s system/f/im notepad.exe/t
Taskkill/pid 1230/pid 1241/pid 1253/t
taskkill/f/im notepad.exe/im MSPaint.exe
taskkill/f/fi "PID ge/fi" windowtitle ne untitle* "
taskkill/f/fi "USERNAME eq NT authority\system"/im notepad.exe
taskkill/s system/u domain\username/fi "username ne nt*"/im *
taskkill/s system/u username/p password/fi "IMAGENAME eq note*"


a simpler example


[Plain] view plaincopy

    1. Taskkill/pid 827

The process that ends the process ID is 827.



[Plain] view plaincopy

    1. taskkill/f/im notepad.exe

Force end of all text editor processes



[SQL] view plaincopy

    1. taskkill/f/fi "USERNAME eq Quinn"   

Force end user name is all processes for Quinn



This article is from the "@ Fast unblocked @" blog, make sure to keep this source http://speediness.blog.51cto.com/760841/1702838

Taskkill Command Bulk End Process

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.