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

VMs host name from Windows 2012 R2 hyper-v cluster

$
0
0

Hi,

We have 2 node hyper-v Windows 2012 R2 cluster.
Couple VMs run on this cluster.
I have check "Guest services" on each VM to get Guest services installed.
Run following script to get VMs' host name:

 (get-item "HKLM:\SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters").GetValue("HostName")

But script failed with error: get-item : Cannot find path 'HKLM:\SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters' because it does not exist.

Is any way to get each VMs host name and IP from hyper-v host?

Thanks


Viewing all articles
Browse latest Browse all 8743

Trending Articles



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