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.