Today's inconvenience involved wanting to query a list of servers to find out what process was listening on a particular port. I'd like to be able to use a txt file or csv as input.
serverA,443
serverB,8888
serverC,11008
So, I need to figure out how to find out the full path to the process that's listening on port 443 on serverA, port 8888 on serverB, etc.
I didn't write a script to do so because I didn't have time. But I am putting the question out here because someday I should be able to script this. My quick search online revealed many simple scripts that I could cut and paste on a local server, but I want something that will query a remote server (difficulty: I don't have Powershell remoting enabled, so it would have to run on my workstation and remotely query the servers).
No comments:
Post a Comment