Skip to content

Instantly share code, notes, and snippets.

@mohitt
Created January 8, 2020 21:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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