
上QQ阅读APP看书,第一时间看更新
Verifying WMI providers
You can check if the WinRM can communicate with OS WMI providers by running the
following command:
winrm enum wmi/root/cimv2/Win32_ComputerSystem -r :http://servername:5985 [-u:YOURDOMAIN\AdminUser]
By running the following command, you can check if the WinRM can communicate with Hyper-V WMI providers:
winrm enum wmi/root/virtualization/v2/msvm_computersystem -r:http://servername:5985 [-u:YOURDOMAIN\AdminUser]
Also, to check if the WinRM can communicate with the VMM agent WMI provider, run the following command:
winrm invoke GetVersion wmi/root/scvmm/AgentManagement -r:servername [-u:YOURDOMAIN\AdminUser] @{}
If you are using VMM services, do not remove and re-add the host. Instead, evacuate the host before removing or, on the host, uninstall and then re-install the agent manually, then reassociate it in VMM.