'Load from Inventory' not working on 'Hyper-V Host' connection type (error getting WMI scope)
If I create a new 'Hyper-V Console' type connection the 'Load from Inventory' button (Information -> General) doesn't work giving 'Error getting WMI Scope'.
If I use the same hostname and credentials to create a new 'Microsoft Remote Desktop' type connection the button works fine (great, actually, this is a very nice feature!).
Any ideas?
Could you verify if the WMI is allowed on this machine?
http://help.remotedesktopmanager.com/troubleshooting_wmi.htm
David Hervieux
It fails when I use 'Hyper-V Host' as a connection type (to the same machine using the same hostname and the same credentials) but succeeds when I use 'Microsoft Remote Desktop' as a connection type so all settings, firewalls, permissions, etc. should be good.
I just checked using wmic (just to be sure) and that works fine (as expected).
Oh I see what you mean. We will have to verify what could be the problem.
David Hervieux
Hmm. I'm afraid it's a bit more subtle than I thought.
I have 5 blades in a single cluster, all member of the same domain so I use the same (inherited) credentials. All blades have the same image so there _should_ be no OS differences (until proven otherwise :)).
This is all tested with new connections (without any template) to make sure there's no differences in other settings. I only filled in the name and set the credentials to inherited.
For the first blade (1), I get:
- wmic commandline works
- as a 'Microsoft Remote Desktop' type connection -> 'load inventory' works
- as a 'Hyper-V Console' type connection -> 'load inventory' does NOT work -> 'Error getting WMI scope' -> Application Log states:
System.Management.ManagementException: Ongeldige parameter
at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)
at System.Management.ManagementPath.CreateWbemPath(String path)
at Devolutions.RemoteDesktopManager.Business.WMIHelper.GetScope(String host, String username, String password, String wmiNamespace)
at Devolutions.RemoteDesktopManager.Frames.FreInformation.c7ebadb38a2590e71f66bb66432232e09(String c6c6ee05d65df4107fd526f602a4a781c, String c18973cea236a9feff75c32ca7d1697d5, String ceb81d1ee93f91e0bc57f34876c263863)
'Ongeldige parameter' translates to 'Invalid parameter'
For the second (2) and third (3) blades I get:
- wmic commandline works
- as a 'Microsoft Remote Desktop' type connection -> 'load inventory' does NOT work -> 'Unable to access inventory' -> 'Error getting WMI scope' -> Application Log states:
Unauthorized access: Toegang geweigerd. (Uitzondering van HRESULT: 0x80070005 (E_ACCESSDENIED))
- as a 'Hyper-V Console' type connection -> 'load inventory' does NOT work -> 'Error getting WMI scope' -> Application Log states:
Unauthorized access: Toegang geweigerd. (Uitzondering van HRESULT: 0x80070005 (E_ACCESSDENIED))
So apparently there are at least two seperate issues here:
1 -> There is a difference in behavior between the 'Microsoft Remote Desktop' (RD) type connection and the 'Hyper-V Console' (HV) type connection. For blade 1 it works for RD but not for HV. For blades 2 and 3 it doesn't work either way but the error popups are different although the Application Log is the same.
2 -> For blades 2 and 3 I can't get it to work for a RD connection either. I'll create a new post for that to avoid mixing up issues: https://forum.devolutions.net/topic24451-load-from-inventory-not-working-on-some-hosts.aspx
Hello,
The first issue with the invalid parameter will be fixed next version.
As for the issue with blades 2 and 3, we will investigate. Do the application logs give any other information than what you posted?
Regards,
Hubert Mireault
Yes, the solution (or at least a workaround) is in the other thread: https://forum.devolutions.net/topic24451-load-from-inventory-not-working-on-some-hosts.aspx