I’d like to write a short script that would capture values of “Hyper-V Hypervisor Virtual Processor% Guest Run Time” for each instance, then execute some logic based on those values. I’m trying to use Get-Counter to pull this information, but I’m not having any luck. Does anyone have a code snippet that I could start with?
submitted by /u/Captain_Hammertoe
[link] [comments]
The post Retrieve values for a perf counter/instance appeared first on How to Code .NET.