I'm running Hyper-V manager using this command:
runas /user:DOMAIN\username "mmc \"C:\Program Files\Hyper-V\virtmgmt.msc\""
It is using a runas because the user I am logged into my machine as doesn't have permissions to access the remote hypervisors - I'm using a more privileged account to access the hypervisors.
When I connect to another server, it connects successfully. If I right click on the server in the list of servers, I can open Hyper-V settings etc. and it returns the correct settings, indicating that I am connected successfully.
However, where I would expect to see a list of virtual machines, instead there is a message saying "The operation on computer 'computername' failed". If I refresh the pane, the message changes to "No virtual machines were found on this server."
- If I run Hyper-V manager as a different higher privileged user, it works
- If I use remote desktop to log on to the hypervisor and connect to a different hypervisor from there, it works
- If I log on to my local machine with the higher privileged user and run Hyper-V, it works
I have tried deleting the entire user profile for the higher privileged user. The problem still occurs.
Both the local and remote machines are running Windows Server 2008 R2.
Any ideas for where to go next with this would be greatly appreciated!