Sprawdzenie samej listy IPv4 kart sieciowych

Wszystkie komendy uruchamiamy w powershell.

Komenda ipconfig:

ipconfig /all | findstr /I "Adapter | Descripton | IPv4" 

Komenda Get-NetAdapter, z ładniejszym formatowaniem)

Get-NetAdapter | ForEach-Object {
    $adapterName = $_.InterfaceAlias
    $ipv4 = (Get-NetIPAddress -InterfaceAlias $adapterName -AddressFamily IPv4).IPAddress
    [PSCustomObject]@{
        "Karta sieciowa" = $adapterName
        "Adres IPv4"     = $ipv4 -join ", "
    }
} | Format-Table -AutoSize

Revision #3
Created 6 March 2025 16:27:33 by Tomasz Konieczny
Updated 10 March 2025 13:38:31 by Tomasz Konieczny