Quantcast
Channel: Hyper-V forum
Viewing all articles
Browse latest Browse all 19461

Get-WmiObject access denied on VM?

$
0
0

I have been trying to use a simple command to join Hyper-V virtual machine to a domain by running a script from the host. The virtual machine is on the same LAN and can access the host trying to issue this command:

Add-Computer -ComputerName "windows7" -LocalCredential "administrator" -DomainName "mydomain.local" -Credential mydomain\administrator -Restart -Force

I get a WMI error:

Add-Computer : Cannot establish the WMI connection to the computer 'windows7' with the following error message: The RPC server is 
unavailable. (Exception from HRESULT: 0x800706BA).

Tried disabling firewall on both the host server and virtual machine. I checked RPC services on both computers and it seems like everything is running.

Tried using a simple WMI command on another physical server:

Get-WmiObject Win32_ComputerSystem –ComputerName node2

Node2 being another physical server (it is however on the same domain and windows7 machine is not). I get a normal answer and everything works fine, but when I try the same with windows 7 Virtual machine (which is on the same LAN and is pingable), I get an error.

Get-WmiObject Win32_ComputerSystem -Credential windows7\administrator –ComputerName windows7

Error:

Get-WmiObject : The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)

Is there a way I could debug this issue?




Viewing all articles
Browse latest Browse all 19461

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>