Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.