windows 10 port occup[ied code example Example: see what ports are in use Get-Process -Id (Get-NetTCPConnection -LocalPort portNumber).OwningProcess