Quantcast
Viewing all articles
Browse latest Browse all 8743

Getting Hyper-V version from VM

I Have written application to find the Hyper-V version (Windows Server 2008,Windows Server 2008 R2 or Windows server 2012) from the Virtual machine. The basic idea is to decide the version of Hyper-V is above Windows Server 2008 R2 Hyper-V or not. If it is above Windows 2008 R2 Hyper-V then i have to enable some option in my application.

I am decided to use Win32_BaseBoard class with "Version" property using WMI. I am getting version as 5.0 for Windows Server 2008 hyper-V and 7.0 for Windows Server 2008 R2 and Serer 2012 hyper-v versions.

So in order to decide, i have planned to convert the version number and to check greater than 6.0.
But i am not sure whether this version will always be in 7.0. I Google it to get appropriate version to check this, but no luck.

Shall i rely on this assumption? Will it work for future versions of Hyper-v? Is there any other place where i can find the details about hyper-v version details?


Viewing all articles
Browse latest Browse all 8743

Trending Articles



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