PowerShell for Windows Admins

Sep 9 2019   10:25AM GMT

Hyper-V VM IP address

Richard Siddaway Richard Siddaway Profile: Richard Siddaway


Saw a question about getting the Hyper-V VM IP address.

One thing with Hyper-V is that the VM has to be running for you to retrieve the IP address.

Once you VM is running you can get the IP address

PS> Get-VM -Name W19ND01 | select -ExpandProperty NetworkAdapters | select VMname, Name, IPAddresses

You’ll get the IPv4 and IPv6 address returned

 Comment on this Post

There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members comment.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

Share this item with your network: