Skip to content

Instantly share code, notes, and snippets.

@mohitt
Created January 8, 2020 21:51
Show Gist options
  • Save mohitt/a251bd0196fcdbf0ed168c0be2baac4d to your computer and use it in GitHub Desktop.
Save mohitt/a251bd0196fcdbf0ed168c0be2baac4d to your computer and use it in GitHub Desktop.
Get process id for port
Get-Process -Id (Get-NetTCPConnection -LocalPort 5050).OwningProcess
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment