Get Disk IO performance counter

Question:

I need to get Page Faults and Disk IO of system while a particular process is running.

I can get Page Faults but not able to get Disk IO:

Answer:

Rather than Get-WMIObject, use the built-in command for getting performance data, Get-Counter:

Get-Counter '\Process(*)\IO Data Operations/sec'

Get-Counter '\Memory\Page Faults/sec'

Source:

Get Disk IO performance counter by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply