Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 2.0 » Import-Counter

Import-Counter - Powershell 2.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 »

Import-Counter

Short description
Imports performance counter log files (.blg, .csv, .tsv) and creates the objects that represent each counter sample
 in the log.

Syntax
Import-Counter [-Path] <string[]> [-Counter <string[]>] [-EndTime <DateTime>] [-MaxSamples <Int64>] [-StartTime <Da
teTime>] [<CommonParameters>]

Import-Counter [-Path] <string[]> -ListSet <string[]> [<CommonParameters>]

Import-Counter [-Path] <string[]> -Summary <switch> [<CommonParameters>]

Description
The Import-Counter cmdlet imports performance counter data from performance counter log files and creates objects f
or each counter sample in the file. The PerformanceCounterSampleSet objects that it creates are identical to the ob
jects that Get-Counter returns when it collects performance counter data. 

You can import data from comma-separated value (.csv), tab-separated value ( .tsv), and binary performance log (.bl
g) performance log files. If you are using .blg files, you can import multiple files (up to 32 different files) in 
each command. And, you can use the parameters of Import-Counter to filter the data that you import.

Along with Get-Counter and Export-Counter, this feature lets you collect, export, import, combine, filter, manipula
te, and re-export performance counter data within Windows PowerShell.