Hi,
Can someone help me to write a powershell function to retrieve the process-name of the process which is using a particular port.
The port number will be provided as input to the powershell function.
I tried using netstat -ano | select-string $Port
But here I have to again depend on the cmdlet "Get-Process -Id XXXX | Format-Table ProcessName" whatever you got the PID in the previous cmdlet.
Can I get it using a single powershell function since Piping get-process and netstat -ano is not possible here.
Please help!
Thanks in advance,
Aravind