Files
LogSeq/pages/Scripts/Fix WSL to Hyperv network.md
2025-12-11 06:26:12 -08:00

459 B

title:: Fix WSL to Hyperv network updated:: 2023-02-08 17:09:10+00:00 created:: 2023-02-08 17:08:43+00:00

Get-NetIPInterface | where {$_.InterfaceAlias -eq 'vEthernet (WSL)'} | Select-Object ifIndex,InterfaceAlias,ConnectionState,Forwarding
`Get-NetIPInterface | where {$_.InterfaceAlias -eq 'vEthernet (WSL)' -or $_.InterfaceAlias -eq 'vEthernet (Default Switch)'} | Set-NetIPInterface -Forwarding Enabled -Verbose`