
我知道可以找到 Windows 8 產品 ID在控制面板的「系統」頁面中。
但是是否可以使用命令提示字元取得 Windows 8 產品 ID?
答案1
以下是一些適合在批次檔中使用的方法:
wmic os get "SerialNumber" | find /v "SerialNumber"
for /f "tokens=3" %p in ('SystemInfo ^| find "Product ID"') do @echo %p
for /f "tokens=3" %p in ('reg query "HKLM\Software\Microsoft\Windows NT\CurrentVersion" /v ProductID') do @echo %p
答案2
可以透過使用 WMI(Windows 管理介面)或從 Windows 註冊表查詢值來實現。
使用 WMI:
在命令列中,鍵入
wmic
(和Enter)在 WMI 內部,輸入
OS
查看“序號”值。它包含您的 Windows 8 ProductID。
PS:或者,您也可以wmic OS
從 cmd 鍵入並蒐索「SerialNumber」。
使用 Windows 登錄:
只需在 cmd 中輸入以下命令:
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v ProductID
甚至:
reg query "HKLM\SOFTWARE\Microsoft\Internet Explorer\Registration" /v ProductID
(Internet Explorer 與 Windows 8 具有相同的 ID。)
答案3
您可以使用 Windows 的SystemInfo
命令。
它將返回有關係統的資訊列表,包括產品 ID(大約在第 9 行下方)。
來自微軟:
顯示有關電腦及其作業系統的詳細配置信息,包括作業系統配置、安全性資訊、產品編號,以及硬體屬性,例如 RAM、磁碟空間和網卡。
如果您只想提取該行,可以使用
systeminfo | find /i "product id"
.
答案4
使用以下命令:
wmic path softwarelicensingservice get OA3xOriginalProductKey
在我的正版 @in 8.1 64 位上進行了測試。參考 -http://www.thewindowsclub.com/find-windows-product-key