Can some expert help me? I need vm IP address in excel.
I run the command, then get IP address in Powershell Consle
Get-VMGuest -vm CCC | Select-Object -Property VmName,HostName,OSFullName,IPAddress,State .
VmName : CCC
HostName : CCC
OSFullName : Microsoft Windows Server 2016 or later (64-bit)
IPAddress : {172.30.12.44, fe80::e47f:d53d:c1c1:87b8}
State : Running
But I run the command
Get-VMGuest -vm CCC | Select-Object -Property VmName,HostName,OSFullName,IPAddress,State | Export-Excel -Path c:\ser.xlsx | start excel C:\ser.xlsx
I can not get IP address,only got system.string[]
VmName | HostName | OSFullName | IPAddress | State |
CCC | CCC | Microsoft Windows Server 2016 or later (64-bit) | System.String[] | Running |