简体   繁体   English

区分Windows Server 2012 Hyper-V版本

[英]Distinguish between Windows Server 2012 Hyper-V versions

I'm writing an installer and need to be able to differentiate between machines running Windows Server 2012 with the Hyper-V feature enabled and the "baremetal" Hyper-V version, Microsoft Hyper-V Server 2012. 我正在编写安装程序,需要能够区分运行Windows Server 2012(启用了Hyper-V功能)的计算机和“裸机” Hyper-V版本Microsoft Hyper-V Server 2012。

For those who are unsure of the difference, this thread more or less covers it: 对于那些不确定差异的人,此线程或多或少涵盖了它:

Hyper-V Server 2012 vs Windows Server 2012 Standard Hyper-V Server 2012与Windows Server 2012 Standard

They both seem to have the same version/build numbers so checking this isn't much use. 它们似乎都具有相同的版本/内部版本号,因此检查此用处不大。 I'm guessing I need to do either a registry lookup or a WMI call but I don't know where to start. 我猜我需要执行注册表查找或WMI调用,但是我不知道从哪里开始。 Any suggestions? 有什么建议么?

Take a look at the OperatingSystemSKU method of the WMI Win32_OperatingSystem class. 看一下WMI Win32_OperatingSystem类的OperatingSystemSKU方法。

The value should be 0x2A (decimal 42) for Hyper-V Server, I believe. 我相信,对于Hyper-V服务器,该值应为0x2A(十进制42)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法连接Hyper-V管理器(在Windows Server 2012 R2上)和Hyper-V Server 2012 R2 - Can't connect Hyper-V Manager (on Windows Server 2012 R2) and Hyper-V Server 2012 R2 无法在 Server 2012 上的 Windows 10 Hyper-V 上运行 Oracle VirtualBox - Unable to run Oracle VirtualBox on Windows 10 Hyper-V on Server 2012 在 Windows 主机和 Linux 来宾之间使用 Hyper-V 套接字 - Using the Hyper-V sockets between Windows host and Linux guest 在Windows Server 2016的Hyper-V中使用Docker和Compose - Using Docker and Compose in Hyper-V with Windows Server 2016 Windows Phone模拟器-Hyper-v - Windows Phone Emulator - Hyper-v 以Windows Server Core为基本映像的Windows Server Hyper-v容器 - Windows Server Hyper-v container with Windows Server Core as base image 我想在Windows功能中启用Hyper-V,但没有Hyper-V选项 - I want to enable Hyper-V in Windows Features, but there is no Hyper-V option 无法在 windows 服务器 2019 中的 Hyper-v 中启动虚拟机 - Can't start virtual machine in Hyper-v in windows server 2019 在Windows的本地网络Docker(Hyper-V)中可访问容器IP - Containers IP accessible in local network Docker for Windows (Hyper-V) 在hyper-v虚拟机上完成Windows应用开发 - complete windows app development on hyper-v virtual machine
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM