Method 3: Tasklist

Article

Method 3: Tasklist

Brien M. Posey

So Netstat tells you which processes are holding which ports open, and who is connected to or from those ports. If you are new to Exchange, or if you see something unexpected in the list, you may need a little help identifying a particular process. That's where Tasklist comes in.

Suppose you found out that a process numbered 2688 was holding open port numbers 135 and 6001, but you didn't know what the process was or what it belonged to.

If you wanted to find out more information, you could enter the Tasklist command. When you did, Windows would display a list of all of the processes that are running on the server, as shown in Figure C. As you scrolled through the list, you would discover that process number 2688 refers to store.exe (this may be different on your

    Requires Free Membership to View

    When you register, you’ll also receive targeted alerts from my team of editorial writers and independent industry experts with the latest news, tips, and advice to help you do your job more efficiently and effectively. Our goal is to keep you informed on the hottest topics and biggest challenges faced by Exchange professionals today working with Exchange, Outlook and other related technologies.

    Margie Semilof, Editorial Director

    By submitting your registration information to SearchExchange.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchExchange.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.


Premium Access

Register now for unlimited access to our premium content across our network of over 70 information Technology web sites.
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

system).

Figure C

The Tasklist command lists all of the processes that are running on the server.

Knowing that the ports are being used by store.exe is great -- assuming that you know what store.exe is. But what if you aren't familiar with a particular process? You can easily find out by entering the following command (substitute # for the process ID):

Tasklist /svc /fi "pid eq #"

For example, if you wanted to find out what process ID number 2688 was, you would enter: Tasklist /svc /fi "pid eq 2688" After doing so, you would see that store.exe is part of the Exchange information store. The actual output looks like Figure D.

Figure D

You can use the Tasklist /svc /fi "pid eq #" command to figure out what service or application a process belongs to.


Tutorial: How to determine which ports Exchange Server is using

 Home: Introduction
 Method 1: RPCDUMP
 Method 2: Netstat
 Method 3: Tasklist

 

 

ABOUT THE AUTHOR:   
 
Brien M. Posey, MCSE
Brien is a Microsoft Most Valuable Professional for his work with Windows 2000 Server and IIS. He has served as CIO for a nationwide chain of hospitals and was once in charge of IT security for Fort Knox. As a freelance technical writer, he has written for Microsoft, TechTarget, CNET, ZDNet, MSD2D, Relevant Technologies and other technology companies.