Get virtual machine IP address using PowerShell

To get IP address of windows OS based virtual machines on hyper-v hosts, use below command:

Get-VM | Select -ExpandProperty NetworkAdapters | Select VMName, IPAddresses, Status

which should generate an output like below:

VMName IPAddresses Status


CentOS {} {Ok}
Jenkins {10.20.3.96, fe80::8165:58b5:fc92:3cd3} {Ok}

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s