Accessing performance counters using PowerShell
filed in PowerShell, perfmon on Feb.26, 2010
Using Get-Counter cmdlet in PowerShell V2, you can get performance counter values. For instance, if you want the current free memory statistics, use this command. Get-Counter ‘\Memory\Available MBytes’ If you want to query the counter continously, use below command. Get-Counter ‘\Memory\Available MBytes’ -Continous -SampleInterval 5 Here sampleinterval means how frequently you want to query the performance [...]



