Registered: 12/01/2002
Posts: 2009
Loc: Brisbane, Australia
This might work better:
Code:
wmic NIC where(NetConnectionStatus=0 OR NetConnectionStatus=2 OR NetConnectionStatus=7)get Description,Index,NetConnectionID,PNPDeviceID,NetEnabled,ConfigManagerErrorCode
This should only filter in valid network interfaces. Stuff like VPNs should not show. Then, if ConfigManagerErrorCode is 22, the device is disabled.
_________________________
Christian #40104192 120Gb (no longer in my E36 M3, won't fit the E46 M3)