Saturday, September 13, 2025

Get-NetTCPConnection

The Get-NetTCPConnection cmdlet within PowerShell can offer details on various network connections.  

The following command shows which ports are listening:

Get-NetTCPConnection -State Listen

Which connections are active:

Get-NetTCPConnection -State Established

Show connections to destination port 443:

Get-NetTCPConnection -State Established -RemotePort 443

Display traffic to a remote IP address:

Get-NetTCPConnection -State Established -RemoteAddress 8.8.8.8

The OwningProcess field can help identify which service or application is the source of the traffic:

Get-NetTCPConnection -State Established -RemotePort 443 | Select OwningProcess

Get-NetTCPConnection | Select LocalAddress, LocalPort, RemoteAddress, RemotePort, State, OwningProcess, @{n="ProcessName";e={(Get-Process -Id $_.OwningProcess).ProcessName}}, @{n="UserName";e={(Get-Process -Id $_.OwningProcess -IncludeUserName).UserName}} | Where {$_.State -eq "Established"} | FT -autosize -Force

The code below shows the oldest 10 connections:

$now = get-date
Get-NetTCPConnection |  select-object LocalAddress,LocalPort,RemoteAddress,RemotePort,State,@{Name="LifetimeSec";Expression={($now-$_.CreationTime).seconds}},OwningProcess, @{Name="Process";Expression={(Get-Process -Id $_.OwningProcess).ProcessName}} | sort-object -property LifetimeSec | select-object -last 10 | ft -auto

The command below includes DNS names:

Get-NetTCPConnection -State Established |Select-Object -Property LocalAddress, LocalPort,@{name='RemoteHostName';expression={(Resolve-DnsName $_.RemoteAddress).NameHost}},RemoteAddress, RemotePort, State,@{name='ProcessName';expression={(Get-Process -Id $_.OwningProcess). Path}},OffloadState,CreationTime | FT

The Get-NetUDPEndpoint cmdlet is similar but shows UDP traffic.

Get-NetUDPEndpoint  | select LocalAddress,LocalPort,CreationTime,OwningProcess,@{Name="Process";Expression={(Get-Process -Id $_.OwningProcess).ProcessName}} | ft -auto

https://woshub.com/get-nettcpconnection-windows-powershell/

https://isc.sans.edu/diary/30532

Monday, September 8, 2025

PDF24 Creator

PDF 24 Creator is a free PDF utility for Windows.  An option is available to download the app from the Microsoft Store.

https://tools.pdf24.org/en/creator

Monday, September 1, 2025

NetPeek

NetPeek is a GUI network scanner.

https://github.com/ZingyTomato/NetPeek

https://www.omgubuntu.co.uk/2025/08/netpeek-linux-network-scanner-gui-alternative-nmap

Maester

Maester is a PowerShell module to perform security checks for a Microsoft 365 environment.

https://maester.dev/

 

MFCMAPI

MFCMAPI is an utility that provides access to MAPI stores to facilitate investigation of Exchange and Outlook problems.

https://github.com/microsoft/mfcmapi

https://office365itpros.com/2023/10/27/mfcmapi-utility-primer/