Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 182126

Network Adapter information using Invoke-VmScript

$
0
0

Hi LucD ,

 

I was using the Get-vmguestnetworkinterface API to fetch the network interface information. like below

 

$interfaces = Get-VMGuestNetworkInterface -VM "VMName" -GuestUser "Administrator" -GuestPassword "XXXXX" -ErrorAction Stop

 

PowerCLI C:\>

PowerCLI C:\> $interfaces[0].NetworkAdapter.Name

 

Network Adapter 2

 

Now using the Invoke-VM Script am fetching the same n.w interface information through ipconfig /all command.

However the output of this ipconfig doesnt list the network adapter details.

 

This n.w adapter information is needed to set the network interface for me. Basically i need to know the mapping of interface to n.w adapter.

Any methods to do this ?

 

 

Regards,

Arvind S.


Viewing all articles
Browse latest Browse all 182126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>