通过win7管理hyperv server2012,总是提示“你没有完成此任务所需的权限。请与计算机X.X.X.X“授权策略的管理员联系。经过仔细检查各项配置,基本确认是wmi的root\cim2的连接问题,通过wbemtest远程连接,会报80070005的错误。想通过MMC远程管理,可是远程MMC管理选择”WMI控件“属性的时候,报win32拒绝访问的错误。进一步分析可以确认是DCOM远程问题,而hyper-v server2012上已经关闭防火墙,又没有图形界面,也没有DCOMCNFG工具,实在不知道如何进行设置。
使用hvremote.wsf /show /target:hyperv2012时,也只会出现如下一个错误:
3: - Connect to root\cimv2 WMI namespace
***** Failed to connect to root\cimv2
***** Error: -2147024891 拒绝访问。
***** Namespace: root\cimv2
FAIL - Was unable to connect. Diagnosis steps:
- Have you run hvremote /add:user or hvremote /add:domain\user
on hyperv2012 to grant access? 注释:此命令已在服务器执行,且win7登录账户即为此账户,在hyperv服务器上建了相同密码的同名账户,属于同一个workgroup
- Are you sure the server name 'hyperv2012' is correct? 注释:服务器名无误,可用此名称执行远程计算机管理
- Did you use cmdkey if needed? More information higher up. 注释:有同名同密码账户登录,执行了cmdkey添加凭据命令也不行。
- Did you restart hyperv2012 after running hvremote /add for 注释:重启过n遍了
the very first time? (Subsequent adds, no restart needed.)
- Is DNS operating correctly and was hyperv2012 found?
Look at the output of tests 1 and 2 above to verify that the
IPv4 address matches the output of 'ipconfig /all' when run on
hyperv2012. If you do not have a DNS infrastructure,
edit \windows\system32\drivers\etc on BJDF
to add an entry for hyperv2012.
注释:已经在hosts文件中添加hyperv服务器记录,可以直接用名称管理或ping通。
INFO: Are running the latest version
-------------------------------------------------------------------------------
1 warning(s) or error(s) were found in the configuration. Review the
detailed output above to determine whether you need to take further action.
Summary is below.
1: Cannot connect to root\cimv2 on hyperv2012
此问题直接影响着hyperV server的远程配置,恳请各位给予帮助,告知如何能够在core模式的hyper-v server 2012上解决此问题。
即::如何不通过DCOMCNFG工具进行DCOM远程权限配置