Skip to content

Instantly share code, notes, and snippets.

@aimtiaz11
Created September 8, 2022 01:20
Show Gist options
  • Save aimtiaz11/6c4f37fadfae4961cde0844e57c0298b to your computer and use it in GitHub Desktop.
Save aimtiaz11/6c4f37fadfae4961cde0844e57c0298b to your computer and use it in GitHub Desktop.
Windows - find & kill processes occupying port

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment