Skip to content

Commit

Permalink
Add an explanation header to the Interface List
Browse files Browse the repository at this point in the history
  • Loading branch information
jspaleta committed Jul 10, 2020
1 parent 2070261 commit 5ac9dbd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/metric-windows-network.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ for($i = 0; $i -lt $Interfaces.Count; $i+=1) {
$Interfaces[$i] = $tmp.Replace(" ","_")
}

if ($ListInterfaces -eq $true) {
Write-Host "List of Available Interface Names"
Write-Host "Full Name :: Underscore Modified Name"
Write-Host "-------------------------------------"
}
foreach ($ObjNet in (Get-Counter -Counter "\$localizedCategoryName(*)\*").CounterSamples)
{
$instanceName=$ObjNet.InstanceName.ToString().Replace(" ","_")
Expand Down

0 comments on commit 5ac9dbd

Please sign in to comment.