"Get-VMGuestNetworkInterface" cmdlet is not recognized
search cancel

"Get-VMGuestNetworkInterface" cmdlet is not recognized

book

Article ID: 417540

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

Following error is seen while attempting to execute "Get-VMGuestNetworkInterface"  on PowerCLI :

Environment

PowerCLI

Cause

The "Get-VMGuestNetworkInterface" cmdlet is deprecated. 

Resolution

To get IP Address of the VM using PowerCLI, run the following command :

  • Get-VM | Select Name, @{N="IP Address";E={@($_.guest.IPAddress[0])}}

The available commands for PowerCLI can be verified on PowerCLI