→ 🚀What's New? Explore Lansweeper's Fall 2024 Updates! Fall Launch Blog !
‎11-12-2021 01:44 PM
Solved! Go to Solution.
‎11-18-2021 02:46 PM
hirogen wrote:
So they're closing all the ports down apart from the ones like sql and a few applications they know are critical, just wondering under applications if there's a way to record the ports which are used by those applications, I've asked controlup they don't do it, I know of tcpip/view from sysinternals but obviously not looking to try on multiple machines with all the various apps out there...
Get-NetTCPConnection | select-object LocalAddress,LocalPort,RemoteAddress,RemotePort,State,@{Name="Process";Expression={(Get-Process -Id $_.OwningProcess).ProcessName}},@{n="UserName";e={(Get-Process -Id $_.OwningProcess -IncludeUserName).UserName}} | Export-Csv -Path "[ExportLocation]" -NoTypeInformation
‎11-18-2021 02:46 PM
hirogen wrote:
So they're closing all the ports down apart from the ones like sql and a few applications they know are critical, just wondering under applications if there's a way to record the ports which are used by those applications, I've asked controlup they don't do it, I know of tcpip/view from sysinternals but obviously not looking to try on multiple machines with all the various apps out there...
Get-NetTCPConnection | select-object LocalAddress,LocalPort,RemoteAddress,RemotePort,State,@{Name="Process";Expression={(Get-Process -Id $_.OwningProcess).ProcessName}},@{n="UserName";e={(Get-Process -Id $_.OwningProcess -IncludeUserName).UserName}} | Export-Csv -Path "[ExportLocation]" -NoTypeInformation
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now