Quantcast
Channel: Hyper-V forum
Viewing all articles
Browse latest Browse all 8743

Virtual Machine BIOS Serial Number Powershell

$
0
0

Hi,

I would like to create a virtual machine and then get the serial number of that VM using PowerShell,

The best i seem to be able to find is using a WMI query using this code

Get-WmiObject-ComputerName MyVMName -Namespace `
root\virtualization\v2 -class Msvm_VirtualSystemSettingData `|select elementname, BIOSSerialNumber

The code is dated probably before hyper-v has a powershell module, i was wondering if anyone knew of a powershell command to get this information rather than WMI?

Thanks

Steve


Viewing all articles
Browse latest Browse all 8743

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>