Created
April 25, 2014 09:02
-
-
Save CraftyFella/11282843 to your computer and use it in GitHub Desktop.
Find out which service is using a port on windows box.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Show me a list of all processes. If they are a service give their name. | |
# Pipe to findstr which filter out anything that is "N/A" (I.e. only show services) | |
tasklist /SVC | findstr /V /C:"N/A" | |
# show me all listening and sending sockets | |
# -o show me their pid | |
netstat -a -o | findstr 4260 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment