From b11d8ea41c6f8a1690c978a7a358beb92df1dcd6 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Mon, 28 Oct 2024 23:11:10 +0800 Subject: [PATCH] vault backup: 2024-10-28 23:11:10 Affected files: docs/Command Snippets/Command Snippets.md docs/Command Snippets/Windows Snippets.md --- docs/Command Snippets/Command Snippets.md | 1 + docs/Command Snippets/Windows Snippets.md | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 docs/Command Snippets/Windows Snippets.md 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