How to get the BIOS GUID of a Hyper-V Virtual Machine using Windows Powershell
If you need to get the GUID of a Hyper-V virtual machine, you can use Windows Powershell. Run the following command:
get-wmiobject -namespace "root/virtualization" -Query "SELECT * FROM
Msvm_VirtualSystemSettingData" Select-Object ElementName,BIOSGUID
Retrieve the GUID of a Hyper-V Virtual Machine using Windows PowerShell and WMI