I wonder if there is some way, from PowerShell, to see for how long a net adapter has been connected/disconnected.
Like when you are double clicking a net adapter in the control panel and you can see the connection duration time.
I've tried to explore MSFT_NetAdapter and Win32_NetworkAdapter but with no luck.
I need this because I want to make a script that disables a NIC when it has had the status "Disconnected" for a specified period of time.
Hmm. Then may be combination of events with further analysis
4001, 4002, 10000, 10001
4001/4002 contains adapter guid, and 10001/10001 – network state
and 'Microsoft-Windows-Windows Firewall With Advanced Security' – 2010
The topic ‘Get connection/disconnected duration from net adapter’ is closed to new replies.