Compare commits

..

4 commits

Author SHA1 Message Date
2ed1c92675 vault backup: 2024-10-29 01:51:16
Affected files:
docs/Command Snippets/Command Snippets.md
2024-10-29 01:51:16 +08:00
16842d6af1 vault backup: 2024-10-29 01:50:58
Affected files:
docs/Command Snippets/Command Snippets.md
2024-10-29 01:50:58 +08:00
06b79f7187 vault backup: 2024-10-28 23:11:46
Affected files:
docs/Command Snippets/Windows Snippets.md
2024-10-28 23:11:46 +08:00
b11d8ea41c vault backup: 2024-10-28 23:11:10
Affected files:
docs/Command Snippets/Command Snippets.md
docs/Command Snippets/Windows Snippets.md
2024-10-28 23:11:10 +08:00
2 changed files with 10 additions and 0 deletions

View file

@ -1,4 +1,6 @@
### Command Snippets
- [Ansible Snippets](Ansible%20Snippets.md)
- [Bash Commands](Bash%20Commands.md)
- [Docker - Miscellaneous](Docker%20-%20Miscellaneous.md)
- [Docker Run](Docker%20Run.md)
- [Windows Snippets](Windows%20Snippets.md)

View file

@ -0,0 +1,8 @@
- Get IP addresses of Hyper-V VMs
```powershell
get-vm | ?{$_.State -eq "Running"} | select -ExpandProperty networkadapters | select vmname, macaddress, switchname, ipaddresses | ft -wrap -autosize
```
- 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
```