j.w*_*alt 11 powershell wmi windows-10
有谁知道如何获得这样的操作系统版本:
操作系统版本:1607
使用 Get-WmiObject?根本找不到这个 Informatin..
小智 11
不是对原始问题的简单回答如下:
Get-ComputerInfo | select windowsversion
WindowsVersion -------------- 1903
WindowsVersion
--------------
1903
mar*_*jnr 3
操作系统版本存储在注册表项中:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ReleaseId。通常您可以使用 WMI 读取这些密钥。
LotPings在评论中提供了正确的查询:(Get-Item "HKLM:SOFTWARE\Microsoft\Windows NT\CurrentVersion").GetValue('ReleaseID')
(Get-Item "HKLM:SOFTWARE\Microsoft\Windows NT\CurrentVersion").GetValue('ReleaseID')
归档时间:
7 年,4 月 前
查看次数:
67616 次
最近记录:
5 年,4 月 前