Link to home
Start Free TrialLog in
Avatar of bibi92
bibi92Flag for France

asked on

script powershell to get network card, ip address

Hello,

i search a script powershell to get network card, ip address.

Thank you

Best

regards
ASKER CERTIFIED SOLUTION
Avatar of aravind anche
aravind anche
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bibi92

ASKER

Hello,

Thank you, but I search to get network card name, ip adress and not the name of ip address.

Best regards
Get-NetAdapterHardwareInfo -Name "*" | Format-List -Property "*"

Open in new window

Avatar of bibi92

ASKER

PS C:\Windows\system32> $NetIPAddresses = (Get-NetIPAddress | where {$_.InterfaceAlias -match "01" -and $_.AddressFamily -eq "IPv4"}
) |  format-list IPAddress, InterfaceAlias
PS C:\Windows\system32> echo $NetIPaddresses