Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 3.0 » Get-Counter

Get-Counter - Powershell 3.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

Get-Counter

Short description
Gets performance counter data from local and remote computers.

Syntax
Get-Counter [[-Counter] <String[]>] [-ComputerName <String[]>] [-Continuous [<SwitchParameter>]] [-MaxSamples <Int64>] 
[-SampleInterval <Int32>] [<CommonParameters>]
Get-Counter [-ListSet] <String[]> [-ComputerName <String[]>] [<CommonParameters>]





Description
The Get-Counter cmdlet gets live, real-time performance counter data directly from the performance monitoring instrumen
tation in Windows.  You can use it to get performance data from the local or remote computers at the sample interval th
at you specify.


Without parameters, a "Get-Counter" command gets counter data for a set of system counters.


You can use the parameters of Get-Counter to specify one or more computers, to list the performance counter sets and th
e counters that they contain, and to set the sample size and interval.