Skip to content

Instantly share code, notes, and snippets.

@PlagueHO
Last active November 29, 2015 22:26
Show Gist options
  • Save PlagueHO/df990e4da91f81f0123b to your computer and use it in GitHub Desktop.
Save PlagueHO/df990e4da91f81f0123b to your computer and use it in GitHub Desktop.
Get the BIOS GUID of a Hyper-V VM
$VMName = 'My VM'
(Get-CimInstance -Namespace Root\Virtualization\V2 -ClassName Msvm_VirtualSystemSettingData -Filter "ElementName = '$VMName'").BiosGUID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment