Avatar of bibi92
bibi92
Flag 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
PowershellNetworking

Avatar of undefined
Last Comment
bibi92

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
aravind anche

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
bibi92

ASKER
Hello,

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

Best regards
aravind anche

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

Open in new window

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
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck