Skip to content

Commit

Permalink
Update Get-Connections.psm1
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyPhipps authored Oct 2, 2024
1 parent 31f8fec commit 815f77f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Modules/Get-Connections.psm1
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
function Get-Connections {
<#
.SYNOPSIS
Retrieves details on all TCP and UDP connections and listening ports.
Collects information on all active TCP and UDP connections to and from the system.
.DESCRIPTION
Collects information on all active TCP and UDP connections to and from the system.
.EXAMPLE
Get-Connections
.EXAMPLE
Get-Connections |
Select-Object -Property * -ExcludeProperty PSComputerName,RunspaceID |
Export-Csv -NoTypeInformation ("c:\temp\Connections.csv")
.EXAMPLE
Invoke-Command -ComputerName remoteHost -ScriptBlock ${Function:Get-Connections} |
Select-Object -Property * -ExcludeProperty PSComputerName,RunspaceID |
Expand Down

0 comments on commit 815f77f

Please sign in to comment.