Windows - Find & Kill processes occupying port Find the process netstat -a -n -0 | find "8081" Note down the value in last column which is the PID. Get Process Details Get-Process | Where-Object {$_.Id -eq 16820} Kill the process taskkill /f /pid 16820