How to Export Performance Counter to a File

by [Published on 27 Aug. 2014 / Last Updated on 27 Aug. 2014]

Tip explains how to export Performance data to a file.

You can use Export-Counter PowerShell cmdlet to export the performance data. This cmdlet is designed to work with Get-Counter cmdlet. Here is an example:

The below command uses Get-Counter cmdlet to collect the Processor Time data and using Export-Counter, data is exported to a blg file.

  • Get-Counter "\Processor(*)\% Processor Time" | Export-Counter -Path C:\Temp\PerfData.blg

The output is saved in the C:\Temp\PerfData.blg file.

About Nirmal Sharma

Nirmal is a MCSEx3, MCITP and was awarded Microsoft MVP award in Directory Services. He is specialized in Directory Services, Microsoft Clustering, Hyper-V, SQL and Exchange and has been involved in Microsoft Technologies since 1994. In his spare time, he offers technical help by writing tips and articles. Nirmal can be reached at nirmal_sharma@mvps.org.

The Author — Nirmal Sharma

Nirmal Sharma avatar

Nirmal is a MCSEx3, MCITP and was awarded Microsoft MVP award in Directory Services and Windows Networking. He is specialized in Directory Services, Microsoft Clustering, Hyper-V, SQL and Exchange and has been involved in Microsoft Technologies since 1994.

Latest Contributions

Featured Links