Quantcast
Channel: Virtual Machine Manager – General forum
Viewing all articles
Browse latest Browse all 2770

VMM 2012R2 - cannot extract IP using Powershell

$
0
0

Hello everyone,

I have 4 Hyper-V VMs in SCVMM 2012R2, 2 x 2012R2 and 2 x 2008R2, and when I run the following command, I only get an IP back for the 2012 ones.

Get-SCVirtualMachine"VMname"|select-ExpandPropertyVirtualNetworkAdapters|Selectname,IPv4Addresses

Name            IPv4Addresses
----             -------------
2008VM01        {}
2008VM02        {}
2012VM01        {10.20.20.20}
2012VM02        {10.20.20.21}

They are all on the same VM network, which does not have a VMM IP Pool, it has a normal DHCP server, which has got the relevant reservations for all of them, and the IP's are all defined manually within the VM's OS. Indeed, connectivity to/from all of them over IP is fine.

In VMM they are all set to "dynamic IPaddress" and "static mac address", and none of them were built from a template, all manually created.

So it is all working OK, communications-wise, I just can't expose the IPs for the 2008 ones through Powershell (nor does VMM see it in the "Connection details" tab in VMM), which I need to do for a script I (am trying to!) run..

I do have other 2008 VMs that Powershell can see the IPs of, so it is just these two..

Thoughts appreciated !

David


Viewing all articles
Browse latest Browse all 2770

Trending Articles



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