Horje
netstat command ports Code Example
netstat command ports
$netstat = netstat -aon | Select-String -pattern "(TCP|UDP)"
$processList = Get-Process

foreach ($result in $netstat) {
   $splitArray = $result -split " "
   $procID = $splitArray[$splitArray.length – 1]
   $processName = $processList | Where-Object {$_.id -eq $procID} |    select processname
   $splitArray[$splitArray.length – 1] = $procID + " " +      $processName.processname
   $splitArray -join " "
}




Whatever

Related
Download Kubectl - latest release Code Example Download Kubectl - latest release Code Example
apt vs apt get Code Example apt vs apt get Code Example
onclick re Code Example onclick re Code Example
curl data from file Code Example curl data from file Code Example
How do you read HEADERS in API response? Code Example How do you read HEADERS in API response? Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7