[英]Registry edition values of Windows 10?
I want to obtain Windows 10 OS edition from registry.我想从注册表中获取 Windows 10 操作系统版本。 I'm reading below registry key in C# code to get the edition of Windows 10/11 OS:
我正在阅读以下 C# 代码中的注册表项以获取 Windows 10/11 操作系统的版本:
SOFTWARE\Microsoft\Windows NT\CurrentVersion\EditionID
Here is the C# code:这是 C# 代码:
using (var key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion"))
{
if (key != null)
{
var keyValue = key.GetValue("EditionID");
var osEdition = keyValue.ToString();
}
}
I need to know the strings that'll be present in this EditionID
key for various flavors of Windows 10 editions.我需要知道将出现在此
EditionID
密钥中的字符串,适用于各种版本的 Windows 10 版本。 I couldn't get any relevant Microsoft documentation around it.我无法获得任何相关的 Microsoft 文档。 Major Windows 10 editions are as below:
Windows 10 的主要版本如下:
I've an Enterprise
edition Windows 10 OS on my PC.我的 PC 上装有
Enterprise
版 Windows 10 操作系统。 So I know that for Enterprise
edition this registry values comes as Enterprise
.所以我知道对于
Enterprise
版,这个注册表值是Enterprise
。 I need to know the rest.我需要知道其余的。
I've been able to obtain some of them.我已经能够获得其中一些。 Please feel free to edit this post if you find anyone installed in your office, school or home.
如果您发现有人安装在您的办公室、学校或家中,请随时编辑此帖子。
已确认适用于工作站的 Windows 10 专业版 - “ProfessionalWorkstation”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.