On a Hyper-V host with multiple guests running you may - for whatever reason - want to work out which files belong to which guest. The config files are not arranged or named logically, they are simply long ID strings. Using PowerShell you can quickly identify where the config files for a specific VM are stored, and what the associated ID is:
$VM = Get-VM “<VM Name>”
Write-Host $VM.ConfigurationLocation
Write-Host $VM.VMId
