Skip to content

Instantly share code, notes, and snippets.

@hgirish
Last active October 17, 2019 01:09
Show Gist options
  • Select an option

  • Save hgirish/45e070a6a6692fbf35a51a7ae7158b6c to your computer and use it in GitHub Desktop.

Select an option

Save hgirish/45e070a6a6692fbf35a51a7ae7158b6c to your computer and use it in GitHub Desktop.
# Using PowerShell, find which process is using the port to solve port in use error.
$portNumber = 1433
Get-Process -Id (Get-NetTCPConnection -LocalPort $portNumber).OwningProcess
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment