Update list-network-neighbors.ps1

This commit is contained in:
Markus Fleschutz 2024-05-09 11:41:56 +02:00
parent af92a2972d
commit 5731ff7a5f

View File

@ -22,7 +22,7 @@ try {
} elseif ($IsMacOS) {
& ip neigh
} else {
Get-NetNeighbor -includeAllCompartments | Format-Table -property InterfaceAlias,IPAddress,LinkLayerAddress,State -autoSize
Get-NetNeighbor -includeAllCompartments | Format-Table -property @{e='IPAddress';width=38},@{e='InterfaceAlias';width=14},@{e='LinkLayerAddress';width=19},@{e='State';width=12}
}
exit 0 # success
} catch {