Windows taskkill command usage

Source: Internet
Author: User


TASKKILL for WINDOWS [/S system [/U username [/P [password] {[/FI filter] [/PID processid |/IM imagename]} [/F] [/T] Description: this command line tool can end at least one process. You can end a process based on the process id or image name. Www.2cto.com parameter list:/S system specifies the remote system to connect. /U [domain \] user specifies the user context in which the command should be executed. /P [password] specifies a password for the provided user context. If this parameter is ignored, a prompt is displayed. /F specifies the process to be forcibly terminated. /FI filter specifies to filter in or out the query tasks. /PID process id specifies the PID of the process to terminate. /IM image name specifies the image name of the process to terminate. The wildcard '*' can be used to specify all image names. /T Tree kill: Terminate the specified process and any sub-processes that are started from this process. /? Show Help/usage. Www.2cto.com 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, in the format of hh: mm: ss. Hh-hour, mm-clock, ss-second MEMUSAGE eq, ne, gt, lt, ge, le memory usage, unit: kb username eq, ne USERNAME, format: [domain \] user MODULES eq, ne DLL name SERVICES eq, ne service name WINDOWTITLE eq, ne window title Note: 1. the wildcard '*' can be used for switching with/IM only when a filter is available '*'. 2. eq stands for "equal", ne stands for "not equal "! Note: The Remote Process must always be forcibly terminated, whether or not the/F option is specified. Www.2cto.com 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 1000 "/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 not E * "--the strong line ends when the system is running the cleanup.exe program: Microsoft Windows XP [version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. c: \ Documents ents and Settings \ Administrator> taskkill-f/FI "WINDOWTITLE eq cleanup.exe" successful: the process with PID 276 has been terminated.

Related Article

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.