Win 10 Pro Desktop with last updates:
Trying to make a batch to disable one network and then enable another.
netsh interface show interface name=Ethernet > F:\_StatusE.txt
Produces the following F:\_StatusE.txt
Ethernet
Type: Dedicated
Administrative state: Enabled
Connect state: Connected
But the following will NOT work in Administrative CMD:
netsh interface set interface Ethernet DISABLED
Control panel could NOT disable it either.
I searched but could not find an answer to the following:
***** What would make it impossible to disable a network interface?
Anybody have a clue??
Win 10 Pro Desktop with last updates:A few more tests this morning with no help. Included closing all running program windows (FireFox, T-Bird, Notepad++)
Trying to make a batch to disable one network and then enable another.
netsh interface show interface name=Ethernet > F:\_StatusE.txt
Produces the following F:\_StatusE.txt
Ethernet
Type: Dedicated
Administrative state: Enabled
Connect state: Connected
But the following will NOT work in Administrative CMD:
netsh interface set interface Ethernet DISABLED
Control panel could NOT disable it either.
I searched but could not find an answer to the following:
***** What would make it impossible to disable a network interface?
Anybody have a clue??
There must be some setting that locks my desktop network to Ethernet in Properties or gpedit.msc or ?
On 12/15/2023 10:26 PM, Zaidy036 wrote:Sorry for new thread. Copied to original
Attempted Restart but after 5 minutes rotating indicator still on screen
so forced power off with button and then after a minute used power
button to start.
Now following work:
POWERSHELL netsh interface show interface
Get-NetAdapter -Name vEthernet* | Disable-NetAdapter
Get-NetAdapter -Name Wi-Fi | Enable-NetAdapter
Did above in sequence:
Admin State State Type Interface Name
------------------------------------------------------------------------- Enabled Disconnected Dedicated Wi-Fi Disabled Disconnected Dedicated Ethernet Disabled Disconnected Dedicated vEthernet (Wi-Fi)
After connection selected
Admin State State Type Interface Name
------------------------------------------------------------------------- Enabled Connected Dedicated Wi-Fi Disabled Disconnected Dedicated Ethernet Enabled Connected Dedicated vEthernet (Wi-Fi)
vEthernet was originally (Ethernet), now (Wi-Fi) so maybe that is why it
is now connected.
Will make batch to toggle between Ethernet/Wi-Fi using PS and see what happens.
Zaidy036 wrote:
There must be some setting that locks my desktop network to Ethernet
in Properties or gpedit.msc or ?
Not sure why you conclude that ... after all if you unplugged the wired ethernet, or turned off the WiFi access point, that amounts to about the
same thing ... you wouldn't expect the desktop as a whole to lock up,
just things like web browser, or email client to lose connectivity ...
On 12/16/2023 2:20 PM, Zaidy036 wrote:
On 12/15/2023 10:26 PM, Zaidy036 wrote:
Attempted Restart but after 5 minutes rotating indicator still on screen
so forced power off with button and then after a minute used power
button to start.
Now following work:
POWERSHELL netsh interface show interface
Get-NetAdapter -Name vEthernet* | Disable-NetAdapter
Get-NetAdapter -Name Wi-Fi | Enable-NetAdapter
Did above in sequence:
Admin State State Type Interface Name
------------------------------------------------------------------------- Enabled Disconnected Dedicated Wi-Fi Disabled Disconnected Dedicated Ethernet Disabled Disconnected Dedicated vEthernet (Wi-Fi)
After connection selected
Admin State State Type Interface Name
------------------------------------------------------------------------- Enabled Connected Dedicated Wi-Fi Disabled Disconnected Dedicated Ethernet Enabled Connected Dedicated vEthernet (Wi-Fi)
vEthernet was originally (Ethernet), now (Wi-Fi) so maybe that is why it
is now connected.
Will make batch to toggle between Ethernet/Wi-Fi using PS and see what happens.
On 12/15/2023 10:26 PM, Zaidy036 wrote:
Win 10 Pro Desktop with last updates:A few more tests this morning with no help. Included closing all running program windows (FireFox, T-Bird, Notepad++)
Trying to make a batch to disable one network and then enable another.
netsh interface show interface name=Ethernet > F:\_StatusE.txt
Produces the following F:\_StatusE.txt
Ethernet
Type: Dedicated
Administrative state: Enabled
Connect state: Connected
But the following will NOT work in Administrative CMD:
netsh interface set interface Ethernet DISABLED
Control panel could NOT disable it either.
I searched but could not find an answer to the following:
***** What would make it impossible to disable a network interface?
Anybody have a clue??
NETSH is working because 'netsh interface show interface' shows:
Admin State State Type Interface Name
------------------------------------------------------------------------- Disabled Disconnected Dedicated Wi-Fi Enabled Connected Dedicated Ethernet Enabled Connected Dedicated vEthernet (Ethernet)
I ran /SFC /VERIFY which found some problems and then /SFC /SCANNOW for correction but after still no success using NETSH and the Control Panel will not Disable or Enable any interface.
I have tried the following in an Admin CMD window:
netsh interface set interface Ethernet admin=DISABLED
netsh interface set interface Ethernet DISABLED
POWERSHELL Get-NetAdapter -Name ethernet* | Disable-NetAdapter
and all result in a blinking cursor hang necessitating window closure and when restarting CMD no change in interface report.
There must be some setting that locks my desktop network to Ethernet in Properties or gpedit.msc or ?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 297 |
Nodes: | 16 (2 / 14) |
Uptime: | 10:11:08 |
Calls: | 6,666 |
Files: | 12,213 |
Messages: | 5,336,333 |