I have read about a windows CMD Command called Taskkill. This command helps us to kill/end one or more processes that is running in your local machine as well as the remote machine.
Basic Syntax:
TASKKILL [/S system [/U username [/P [password]]]]
{ [/FI filter] [/PID processid | /IM imagename] } [/F] [/T]
/S can be used if we wish to end a process in a remote machine. If it is a local machine it is not necessary to code it.
/U is used to specify the username who initiated that process.
/P is used to specify the password for the specified Username. If this is omitted, It will prompt for it while execution.
/FI is used to filter the request criteria to its finest
/PID is used to kill the process by its process ID
/IM is used to kill the process by its process Imagename
/T is an option which is similar to Kill Process Tree in Task Manager
General Example:
taskkill /IM iexplore.exe -> will kill internet explorer in loacl machine
taskkill /s wrkstn01 /IM vlc.exe -> will kill VLC player on the machine "wrkstn01"
taskkill /s l01wkst01 /u "IT Dept" /im process.exe /f /t
will kill the whole process tree of given process.exe initiated under IT Dept user of 101wkst01 machine.
You can get info regarding Filters of this command in your machine with the command TASKKILL /? in CMD.
No comments:
Post a Comment