Get Hyper-V guest serial number

The following command will return the serial number of the VM specified.

Get-WmiObject -ComputerName Computer-Namespace root\virtualization\v2 -class Msvm_VirtualSystemSettingData | where {$_.elementname -eq "VMName"} | select elementname, BIOSSerialNumber
GetVMSerialNumber

Leave a comment