diff --git a/scripts/list-network-neighbors.ps1 b/scripts/list-network-neighbors.ps1 index 1629db04..19b03fc6 100644 --- a/scripts/list-network-neighbors.ps1 +++ b/scripts/list-network-neighbors.ps1 @@ -6,9 +6,9 @@ .EXAMPLE PS> ./list-network-neighbors.ps1 - Name InterfaceAlias IPAddress LinkLayerAddress State - ---- -------------- --------- ---------------- ----- - <<>8:8:88:8: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 {