Tech Craft

How-to, tips and tricks for working with today's technology. Covers Windows XP, Windows Server 2003, Exchange Server 2003, IIS 6.0 and SQL Server 2005.


Scripts and command-line how-to and tips

Get detailed information on running processes from the command-line.


Get detailed information on running processes from the command-line.

You can view a list of running tasks simply by typing tasklist at the command prompt. As with many other command-line utilities, Tasklist runs by default with the permissions of the currently logged on user and you can also specify the remote computer whose tasks you want to query, and the Run As permissions.

To do this, use the expanded syntax, which includes the
following parameters:

/s Computer /u [Domain\]User [/p Password]

where Computer is the remote computer name or IP address, Domain is the optional domain name in which the user account is located, User is the name of
the user account whose permissions you want to use, and Password is the optional password for the user account.

If you donít specify the domain, the current domain is assumed. If you donít provide the account password, you are prompted for the password.

Thanks for reading Line.Man! If you found this tip useful, I hope you'll read Windows Command-line Administrator's Pocket Consultant.

William R. Stanek


Books Training Seminars/Locations   Training Registration    Self-Study Training

The obligatory copyright statement:
©William R. Stanek 2004-2005. All Rights Reserved.