mirror of
https://github.com/lemeow125/Notes.git
synced 2024-11-16 19:59:25 +08:00
vault backup: 2024-10-28 23:11:46
Affected files: docs/Command Snippets/Windows Snippets.md
This commit is contained in:
parent
b11d8ea41c
commit
06b79f7187
1 changed files with 4 additions and 1 deletions
|
@ -2,4 +2,7 @@
|
|||
```powershell
|
||||
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
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue