Try creating and using an external vSwitch instead of NATing via the default switch.
--please don't forget to upvote
and Accept as answer
if the reply is helpful--
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I'd like to temporarily disable all Hyper-V, WSL2 network adapters in Windows 11 Pro. I PC games w/my kids sometimes in the evenings and when those adapters are enabled, I cannot join LAN matches (I presume due to subnet scanning of 172.** instead of 192.168.* for my LAN).
When I disable Hyper-V, all problems go away, but that's sort of a pain to have to do. I'd rather have a script that I can run to enable and disable all Hyper-V/WSL2 adapters.
Is there a way to do this?
Thanks,
Jon M. Davidson
Try creating and using an external vSwitch instead of NATing via the default switch.
--please don't forget to upvote
and Accept as answer
if the reply is helpful--
Hi Jon,
You can use a command prompt to enable and disable hyper-v, so you could use a batch file:
dism.exe /Online /Disable-Feature:Microsoft-Hyper-V
and
dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All
--------------------------------------------------------------------------------------------------------------------------------------------
--If the reply is helpful, please Upvote and Accept as answer--