【问题标题】:How to get the 'Release ID' of a windows server?如何获取 Windows 服务器的“发布 ID”?
【发布时间】:2019-10-26 18:23:21
【问题描述】:

我找不到 Windows Server 2012 R2 标准的发布 ID(构建版本,看起来像“1511”或“1803”),我需要它来形成其 CPE(通用平台枚举)。

不熟悉所有这些并且没有取得这样的成功,我也不知道该尝试什么。 为了在 Windows 10 上获取此版本 ID,我使用了 REG Query 并自动执行它,我使用了带有子进程的 python。

这是我用来获取版本 ID 的命令:

'Reg Query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v ReleaseId'

它成功地为我提供了 Windows 10 所需的结果,但对于 Windows 服务器却提供了:

ERROR: The system was unable to find the specified registry key or value.

【问题讨论】:

    标签: python windows-10 windows-server


    【解决方案1】:

    如果仅适用于 Win 10 和 Windows Server 2016 或更高版本,我相信 Release Id(也称为 Windows 10 Release Id,采用 YYMM 格式)。

    也许您的命名基于主要/内部版本号?

    所有版本的表格:

    【讨论】:

      【解决方案2】:

      嘿@rockangator,在 www.google.com 上提供了一个简单的 python 代码,因为这个问题根本无法理解,你在这里写的。下次请尝试更具体。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2019-03-21
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2020-07-21
        • 1970-01-01
        • 2020-12-19
        • 2012-03-24
        相关资源
        最近更新 更多