Hi All,
I'm looking for help on how to get the below working, and to keep a history of the results or have them displayed in a chart?
$results = @()
$results = netstat -ano | Select-String -Pattern '\s+(TCP|UDP)'
$TimeWait = $results| where { $_.Line -like "*TIME_WAIT*0*"}
#initialize counter for progress
$SolarWindsCount = $TimeWait.count
return $SolarWindsCount
thanks for any help Hans