diff --git a/docs/Command Snippets/Command Snippets.md b/docs/Command Snippets/Command Snippets.md index 44167a2..c759a18 100644 --- a/docs/Command Snippets/Command Snippets.md +++ b/docs/Command Snippets/Command Snippets.md @@ -2,3 +2,4 @@ - [Bash Commands](Bash%20Commands.md) - [Docker - Miscellaneous](Docker%20-%20Miscellaneous.md) - [Docker Run](Docker%20Run.md) +- [Windows Snippets](Windows%20Snippets.md) \ No newline at end of file diff --git a/docs/Command Snippets/Windows Snippets.md b/docs/Command Snippets/Windows Snippets.md new file mode 100644 index 0000000..9de8005 --- /dev/null +++ b/docs/Command Snippets/Windows Snippets.md @@ -0,0 +1,5 @@ +- 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 t \ No newline at end of file