Taskkill Command Options For Mac

Taskkill Command Options For Mac Average ratng: 5,7/10 944 votes

At the command prompt, type: tasklist, which will generate a list of running programs just like those you would find in the Windows Task Manager, only way cooler looking with more power.

-->

Applies To: Windows Server (Semi-Annual Channel), Windows Server 2016, Windows Server 2012 R2, Windows Server 2012

Ends one or more tasks or processes. Processes can be ended by process ID or image name. taskkill replaces the kill tool.For examples of how to use this command, see Examples. Airy free youtube downloader for mac.

Syntax

Parameters

ParameterDescription
/s <computer>Specifies the name or IP address of a remote computer (do not use backslashes). The default is the local computer.
/u <Domain><UserName>Runs the command with the account permissions of the user who is specified by UserName or DomainUserName. /u can be specified only if /s is specified. The default is the permissions of the user who is currently logged on to the computer that is issuing the command.
/p <Password>Specifies the password of the user account that is specified in the /u parameter.
/fi <Filter>Applies a filter to select a set of tasks. You can use more than one filter or use the wildcard character (*) to specify all tasks or image names. See the following table for valid filter names, operators, and values.
/pid <ProcessID>Specifies the process ID of the process to be terminated.
/im <ImageName>Specifies the image name of the process to be terminated. Use the wildcard character (*) to specify all image names.
/fSpecifies that processes be forcefully terminated. This parameter is ignored for remote processes; all remote processes are forcefully terminated.
/tTerminates the specified process and any child processes started by it.

Filter names, operators, and values

Filter NameValid OperatorsValid Value(s)
STATUSeq, neRUNNING NOT RESPONDING UNKNOWN
IMAGENAMEeq, neImage name
PIDeq, ne, gt, lt, ge, lePID value
SESSIONeq, ne, gt, lt, ge, leSession number
CPUtimeeq, ne, gt, lt, ge, leCPU time in the format HH:MM:SS, where MM and SS are between 0 and 59 and HH is any unsigned number
MEMUSAGEeq, ne, gt, lt, ge, leMemory usage in KB
USERNAMEeq, neAny valid user name (User or DomainUser)
SERVICESeq, neService name
WINDOWTITLEeq, neWindow title
MODULESeq, neDLL name

Remarks

  • The WINDOWTITLE and STATUS filters are not supported when a remote system is specified.
  • The wildcard character () is accepted for the */im option only when a filter is applied.
  • Termination of remote processes is always carried out forcefully, regardless of whether the /f option is specified.
  • Supplying a computer name to the hostname filter causes a shutdown and all processes are stopped.
  • You can use tasklist to determine the process ID (PID) for the process to be terminated.

Examples

To end the processes with process IDs 1230, 1241, and 1253, type:

To forcefully end the process 'Notepad.exe' if it was started by the system, type:

To end all processes on the remote computer 'Srvmain' with an image name beginning with 'note,' while using the credentials for the user account Hiropln, type:

Usb overdrive alternative for mac pro

To end the process with the process ID 2134 and any child processes that it started, but only if those processes were started by the Administrator account, type:

To end all processes that have a process ID greater than or equal to 1000, regardless of their image names, type:

additional references