我想从注册表中获得Windows 10操作系统版本。我正在阅读下面的注册表项,使用C#代码获取它:
SOFTWARE\Microsoft\Windows NT\CurrentVersion\EditionID以下是C#代码:
using (var key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion"))
{
if (key != null)
{
var keyValue = key.GetValue("EditionID");
var osEdition = keyValue.ToString();
}
}我需要知道不同版本的Windows 10的EditionID键中会有哪些字符串,我无法获得任何相关的微软文档。主要Windows 10版本如下:
适用于Workstations
的
我的电脑上有一个Enterprise版本的Windows 10操作系统。所以我知道对于Enterprise版本,这个注册表值是Enterprise。我要知道剩下的事。
发布于 2021-11-04 07:57:46
我得到了其中的一些。如果您发现有人安装在您的办公室、学校或家中,请随时编辑此帖子。
适用于工作站的ProfessionalWorkstation
发布于 2022-10-10 18:38:28
我知道的EditionID为"EnterpriseS“
我在一个运行在LattePanda上的版本上发现了这一点。
发布于 2021-12-10 01:34:33
已确认的用于工作站的Windows10Pro- ProfessionalWorkstation
https://stackoverflow.com/questions/69611347
复制相似问题