Thursday, 7 January 2010

Astazi am facut - kill/view process in windows XP

Tskill
The syntax for the command is

TSKILL processid processname [/SERVER:servername] [/ID:sessionid /A] [/V]

-processid - PID for process to be terminated. Use only if processname is not used
-processname - Process name to be terminated. Wildcards can be used here . Do not use if PID is used
-/SERVER:servername - Server containing processID (default is current). Usually not needed on home PCs
-/ID:sessionid - End process running under the specified session. Often not needed on home PCs
-/A - End process running under ALL sessions (administrator privileges required)
-/V - Display information about actions being performed

Example

tskill wscript

Taskkill

A tool with more options is provided by Taskkill. The command syntax is
TASKKILL [/S system [/U username [/P[password]]]]{ [/FI filter]
[/PID processid /IM imagename] } [/F] [/T]

-/S system - Specifies the remote system to connect to. Not needed for most home PCs
-/U username - User context under which the command should execute. Often not needed on home PCs
/P password - Password for username
/FI filter - Displays a set of tasks that match criteria specified by the filter
/PID processid - Specifies the PID of the process that has to be terminated. Not used when image name is given in the command
/IM imagename - Specifies the image name of the process that has to be terminated. Wildcard '*' can be used to specify all image names. Not used if PID is given in the command
/F - Forces the termination of all processes
/T - Tree kill: terminates the specified process and any child processes which were started by it

Example

taskkill /f /im wscript.exe


Pentru a vedea procesele folosind CMD


Type the command given below exactly:

WMIC /OUTPUT:C:\ProcessList.txt PROCESS get Caption,Commandline,Processid & C:\ProcessList.txt

Poate fi folosita comanda de mai sus doar daca aveti drepturi de admin

No comments:

Post a Comment