Answer the question
In order to leave comments, you need to log in
Starting Ethernet adapter programmatically (using Bath or PowerShell)?
Hello!
I'm looking for a way to programmatically (using Bath or PowerShell) start an ethernet network adapter. In normal mode, when I turn on my computer, it may not be detected in the list of network adapters. In this case, I use a reboot and it helps. This is probably a hardware problem, because this has been observed on various wasps (but this is not certain).
But I would like to be able to do without rebooting every time the interface disappears.
Answer the question
In order to leave comments, you need to log in
Yesoi rescan in the Device manager in the control panel does not find anything, so the software is unlikely to help.
you can search for something in devcon, like
devcon rescan
devcon reset
devcon find(all)
Most likely, he wants to reset the piece of iron.
disable quick boot?
(Get-WmiObject win32_NetworkAdapter -Filter "Index=2").disable()
(Get-WmiObject win32_NetworkAdapter -Filter "Index=2").enable()
Not powershell, but just a regular netsh
utility
, we get a list:
netsh interface show interface
netsh interface set interface "Network Connection 1" disable
wmic nic get name, index
wmic path win32_networkadapter where index = 2 call disable
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question