TIL: There’s a Windows Command line tool to list PIDs

tasklist /svc
This command lists the services currently running with their PIDs. Very useful for finding out which service is using a particular port.

netstat -aon
This command lists open ports with PIDs.

Of course there are windows applications to show you these things (Resource Manager) but it’s nice to know there are command line ways of doing the same thing.

Author: Ean