Find disconnected adapters
Documentation: Microsoft Learn
Use Get-NetAdapter to list interfaces whose status is not Up. Include the interface name, status, and driver description for investigation.
The script
Script reader
Inspect before you run
Inspect the script below. It does not run in this browser.
Inspection only — no command has run.
Show reference output
Inspect this example’s structure
Read the command and its supplied arguments. This example requires real PowerShell or its module; this diagram does not execute it.
Get-NetAdapter | Where-Object Status -ne Up | Select-Object Name,Status,InterfaceDescription- Stage 1Get-NetAdapter
Positional values or no named parameters - Stage 2Where-Object
-ne - Stage 3Select-Object
Positional values or no named parameters
How it works
Get-NetAdapter is filtered to interfaces whose Status is anything other than Up, and the projection keeps the friendly name with that status and the driver description so the physical port can be identified in the rack.
Adapting it
Narrow this to genuine link failures with Where-Object Status -eq 'Disconnected', since the unfiltered version also returns adapters that are administratively disabled and were meant to stay that way.
If the result is unexpected
A disconnected adapter is mistaken for a broken physical network port.
Disabled, virtual and unused adapters can be expected to show disconnected state.
- Inspect adapter description, status and intended role before treating it as an incident.
Validate the result
The affected physical or virtual interface is identified and its expected state is documented.
Keep the check reliable
Maintain an inventory of intentionally unused adapters to reduce misleading alerts.