locked
get-counter Windows resource monitor RRS feed

  • Question

  • I tried to create a script to check the same values I have in the Resource Monitor of Windows with Powershell. The process I try to find start by the word genetec.  

    I tried this option but the Cookvalue doesn't match with the results I have in the graphical interface 

    (Get-Counter '\Process(Genetec*)\% Processor Time').CounterSamples | Where-Object {$_.CookedValue -gt 5} 

    Do you know why the results are totally different. How does windows calculate  CPU and CPU average in the graphical interface. Please, check the screenshot

    you will notice the value goes between 24 and 25 but the powershell shows more than 98. what does this value mean?

    thanks

    Monday, January 8, 2018 7:39 PM

All replies