MSVM_ComputerSystem WMI class returns only Hyper-V host

我的未来我决定 提交于 2020-01-24 18:00:47

问题


Having a problem in listing list of virtual machine from Hyper-V host (Windows 2012 R2) using WMI query remotely. (select * from MSVM_Computersytem).

The query lists only Host system and no virtual machines are listed.

WMI query is ran in the context of domain user from a remote system and has all required permission to Hyper-V host’s WMI name space (\root\Virtualization\V2). There is no error in connecting to Virtulization\V2 name space. I don’t see any WMI events in event logger as well.

With similar permission we are able to query WMI classes in root\cimv2 name space but unable to get data from WMI classes in root\virtualization\v2 name space

Virtual machines are listed when domain user provided with local admin rights of Hyper-V host.

The systems are in highly secured environment and we don't want to give local admin rights on Hyper-V hosts.

Domain user is also part of “Performance Monitor Users”, “Distributed COM Users” and “WinRMRemoteWMIUsers” Windows groups

What additional permission is required to get list of VM’s remotely without giving local admin rights.


回答1:


Try moving the user to "Hyper-V Administrators" local security group on the Hyper-V Server. For more details follow the below link:

https://social.technet.microsoft.com/Forums/en-US/e377ae58-8912-4f8c-8fbe-14955a483a52/msvmcomputersystem-wmi-class-returns-only-hyperv-host?forum=winserverhyperv



来源:https://stackoverflow.com/questions/31594441/msvm-computersystem-wmi-class-returns-only-hyper-v-host

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!