Artifact 1ef0fceff3a7796164216e21a936ea9f706579bfb2375a5e7be012d451d53453:
- File NIC-Performance.ps1 — part of check-in [5a5ca26a5a] at 2018-06-10 12:56:55 on branch trunk — Reads perfmon counters from all network interfaces (user: halr9000 size: 482)
# encoding: ascii # api: powershell # title: NIC Performance # description: Reads perfmon counters from all network interfaces # version: 0.1 # author: halr9000 # license: CC0 # x-poshcode-id: 1346 # x-archived: 2009-10-25T12:26:59 # # $cat = New-Object system.Diagnostics.PerformanceCounterCategory("Network Interface") $inst = $cat.GetInstanceNames() foreach ( $nic in $inst ) { $a = $cat.GetCounters( $nic ) $a | ft CounterName, { $_.NextValue() } -AutoSize }