Tuesday, December 19, 2017

Msvm_VirtualSystemManagementService GetInstances()

Spent the last several hours trying to figure out why I could not see any instances of the Msvm_VirtualSystemManagementService class through C# on my local machine.  However, I could see the instances through WMI Explorer, but not in WBEM Test.  Then I realized what the difference was.  WMI Explorer was running as Administrator, while both WBEM Test and Visual Studio were not.  Re-launched Visual Studio as administrator and amazingly I could see the expected instances. 

Frustrating to say the least...

No comments:

Post a Comment