diff --git a/docs/Command Snippets/Windows Snippets.md b/docs/Command Snippets/Windows Snippets.md index 9de8005..c0f0ae9 100644 --- a/docs/Command Snippets/Windows Snippets.md +++ b/docs/Command Snippets/Windows Snippets.md @@ -2,4 +2,7 @@ ```powershell get-vm | ?{$_.State -eq "Running"} | select -ExpandProperty networkadapters | select vmname, macaddress, switchname, ipaddresses | ft -wrap -autosize ``` -- Enable t \ No newline at end of file +- Enable traffic forwarding from WSL to Hyper-V `vEthernet (WSL) -> vEthernet (Default Switch)` +```powershell +Get-NetIPInterface | where {$_.InterfaceAlias -eq 'vEthernet (WSL)' -or $_.InterfaceAlias -eq 'vEthernet (Default Switch)'} | Set-NetIPInterface -Forwarding Enabled +```