Contact Info

Crumbtrail » Administration » Powershell » Powershell 3.0 » Import-Counter

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


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

Import-Counter [-Path] <String[]> [-Counter <String[]>] [-EndTime <DateTime>] [-MaxSamples <Int64>] [-StartTime <DateTi
me>] [<CommonParameters>]
Import-Counter [-Path] <String[]> -ListSet <String[]> [<CommonParameters>]
Import-Counter [-Path] <String[]> [-Summary [<SwitchParameter>]] [<CommonParameters>]

The Import-Counter cmdlet imports performance counter data from performance counter log files and creates objects for e
ach counter sample in the file. The PerformanceCounterSampleSet objects that it creates are identical to the objects th
at 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 (.blg) p
erformance log files. If you are using .blg files, you can import multiple files (up to 32 different files) in each com
mand. 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, manipulate, 
and re-export performance counter data within Windows PowerShell.