Followers

Saturday 31 December 2016

How to obtain IP Address of Windows 2008 R2 VM on Hyper-V with PowerShell?

Source: serverfault.com --- Saturday, December 31, 2016
I have created an automated build script to build new VMs on Hyper-V 2016. I sometimes need a 2008 R2 VM and the way I obtain the IP Address to connect to my 2012 R2/2016 VMs is to use some powershell like: get-vm -Name $VMName|Get-VMNetworkAdapter|Select-Object -ExpandProperty IpAddresses Works great for 2012/2016, but returns an empty array with a 2008 R2 VM. Any ideas on how to obtain the IP Address from Hyper-V with Powershell? The script is running from a Windows 10 workstation. ...



from Windows http://ift.tt/2io2oPS

No comments:

Post a Comment