Update list-network-neighbors.ps1

This commit is contained in:
Markus Fleschutz 2024-05-08 18:56:05 +02:00
parent 29bd848405
commit 54974f6660

View File

@ -17,6 +17,8 @@
#>
try {
if ($IsLinux -or $IsMacOS) { throw "Sorry, currently available for Windows only" }
Get-NetNeighbor -includeAllCompartments | Format-Table -property Name,InterfaceAlias,IPAddress,LinkLayerAddress,State -autoSize
exit 0 # success
} catch {