first commit
This commit is contained in:
12
pages/Scripts/Fix WSL to Hyperv network.md
Normal file
12
pages/Scripts/Fix WSL to Hyperv network.md
Normal file
@@ -0,0 +1,12 @@
|
||||
title:: Fix WSL to Hyperv network
|
||||
updated:: 2023-02-08 17:09:10+00:00
|
||||
created:: 2023-02-08 17:08:43+00:00
|
||||
|
||||
|
||||
```powershell
|
||||
Get-NetIPInterface | where {$_.InterfaceAlias -eq 'vEthernet (WSL)'} | Select-Object ifIndex,InterfaceAlias,ConnectionState,Forwarding
|
||||
```
|
||||
|
||||
```powershell
|
||||
`Get-NetIPInterface | where {$_.InterfaceAlias -eq 'vEthernet (WSL)' -or $_.InterfaceAlias -eq 'vEthernet (Default Switch)'} | Set-NetIPInterface -Forwarding Enabled -Verbose`
|
||||
```
|
||||
Reference in New Issue
Block a user