Wednesday, January 20, 2010

Useful Windows Command Tools

I just found some useful windows tools you can use from the command line:

1. Tasklist: Allows you to see the list of tasks running on your local computer or on a remote computer. For instance, you can run:

Tasklist /S [computer name] /U [user name] /P [user password]

If you have Administrative rights, you can run it to see the tasks another user is running on another computer on your LAN.

2. Taskkill: Allows you to kill a remote task (process) running on your local computer or on a remote computer on the network (LAN). You can run:

Taskkill /S [computer name] /U [user name] /P [user password] /PID [process id number]

This is very handy if a remote computer is stuck and you cannot login to it.

3. Logoff: This is very handy if you want to use Terminal Services and all the sessions are used. You can logoff another user who has left his session open.

LOGOFF [sessionname | sessionid] [/SERVER:servername] [/V]