Created
January 15, 2020 18:33
-
-
Save bearlikelion/11b8736af11a98c092a7149b4a8ff3b2 to your computer and use it in GitHub Desktop.
Get-VMInfo.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Script is designed to output all Hyper-V Virtual Machine | |
# Config file location and disks | |
$VMs = Get-VM | |
Foreach ($VM in $VMs) | |
{ | |
Write-Output $VM.Name | |
Write-Output "---" | |
Write-Output $VM.ConfigurationLocation | |
Write-Output $VM.HardDrives.Path | |
Write-Output "" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example Output