vault backup: 2024-10-28 23:11:46

Affected files:
docs/Command Snippets/Windows Snippets.md
This commit is contained in:
Keannu Bernasol 2024-10-28 23:11:46 +08:00
parent b11d8ea41c
commit 06b79f7187

View file

@ -2,4 +2,7 @@
```powershell ```powershell
get-vm | ?{$_.State -eq "Running"} | select -ExpandProperty networkadapters | select vmname, macaddress, switchname, ipaddresses | ft -wrap -autosize get-vm | ?{$_.State -eq "Running"} | select -ExpandProperty networkadapters | select vmname, macaddress, switchname, ipaddresses | ft -wrap -autosize
``` ```
- Enable t - 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
```