opserver / Opserver

Stack Exchange's Monitoring System
https://opserver.github.io/Opserver/
MIT License
4.51k stars 827 forks source link

Reduce permissions required for WMI #252

Closed afscrome closed 7 years ago

afscrome commented 7 years ago

Querying Win32_OptionalFeature seems to equire administrative rights (at least on Server 2012 R2). Instead of querying installed features, see if the Win32_PerfRawData_HvStats_HyperVHypervisorLogicalProcessor class exists.

Also included a small tweak to allow VS to identify the dynamic members in WmiDynamic.

NickCraver commented 7 years ago

Thanks!