views:

173

answers:

1

Hello I want to create a performance counter named as FileCopierApp, this should work with the get-counter cmdlet, How can I Achieve this? the properties would be:

CounterSetName : FileCopierApp
MachineName : .
CounterSetType : SingleInstance
Description : Statistics for FileCopierApp.exe application
Paths : {\localhost\blablabla}
PathWithInstances : {}
+1  A: 

I'm guessing that you want to add your own performance counters to your application and have them show up in powershell. Take a look at:

http://www.codeplex.com/PerfmonCounterHelper

It allows you to easily add performance counters to your application, which will automatically show up in powershell's get-counter cmdlet.

-Oisin

x0n

related questions