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 : FileCo开发者_如何转开发pierApp
MachineName : .
CounterSetType : SingleInstance
Description : Statistics for FileCopierApp.exe application
Paths : {\localhost\blablabla}
PathWithInstances : {}
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
精彩评论