Hyper-V VM IP address

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

Advertisements
This entry was posted in Hyper-V, Powershell. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s