Contact Info

Crumbtrail

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

Export-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 »

Export-Counter

Short description
The Export-Counter cmdlet takes PerformanceCounterSampleSet objects and exports them as counter log files.

Syntax
Export-Counter [-Path] <String> [-Circular [<SwitchParameter>]] [-FileFormat <String>] [-Force [<SwitchParameter>]] [-M
axSize <UInt32>] -InputObject <PerformanceCounterSampleSet[]> [<CommonParameters>]





Description
The Export-Counter cmdlet exports performance counter data (PerformanceCounterSampleSet objects) to log files in binary
 performance log (.blg), comma-separated value (.csv), or tab-separated value (.tsv) format.  You can use this cmdlet t
o log or relog performance counter data.


Export-Counter is designed to export data that is returned by the Get-Counter and Import-Counter cmdlets.


Note: Export-Counter runs only on Windows 7, Windows Server 2008 R2, and later versions of Windows.