共用方式為


ComputerHardwareIds

ComputerHardwareIds (ComputerHardwareIds.exe) 是 Windows 驅動程式套件 (WDK) 命令列工具,可用來產生廠商電腦系統特定模型的硬體識別碼。 廠商可以使用這些硬體識別碼,將裝置中繼資料套件與該特定電腦型號相符。

執行 Windows 7 或更新版本的 Windows 作業系統的系統支援 ComputerHardwareIds 工具。 此工具組含在 目錄下的 bin Windows 驅動程式套件 (WDK) 中。 (x86) 和 64 位 Windows 平臺 (x64) 有個別版本的 Windows 平臺。

如需下載和安裝 WDK 的資訊,請參閱 下載 Windows 驅動程式套件 (WDK)

執行 ComputerHardwareIds

若要執行 ComputerHardwareIds,請在命令提示字元中輸入 命令。

C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64>ComputerHardwareIds> ComputerHardwareIds

參數

None

註解

ComputerHardwareIds 工具會根據電腦系統管理 BIOS (SMBIOS) 欄位的資訊,為電腦建立硬體識別碼。 如需欄位的清單,請參閱 指定電腦的硬體識別碼

如需選取電腦硬體識別碼值的詳細資訊,以及裝置中繼資料套件的詳細資訊,請參閱 指定電腦的硬體識別碼

ComputerHardwareIds 範例輸出

以下是 ComputerHardwareIds 工具所產生的輸出範例。

Using the BIOS to gather information

## Computer Information

BIOS Vendor: Contoso Inc.
BIOS Version string: A16
System BIOS Major Version: 6
System BIOS Minor Version: 0

System Manufacturer: Contoso Inc.
System Family: (null)
System ProductName: Contoso SYS01

Enclosure Type: Portable


Hardware IDs
------------
{346511cf-ccee-5c6d-8ee9-3c70fc7aae83}    <- Manufacturer + Family + ProductName + BIOS Vendor + BIOS Version + Major Version + Minor Version
{d7be59e5-29b5-589a-b49d-de7265ef6a7b}    <- Manufacturer + Family + ProductName

在此範例中,廠商 (Contoso Inc.) 通常會針對廠商裝置中繼資料套件的PackageInfo XML 檔中的 HardwareID元素值使用第二個硬體識別碼 (d7be59e5-589a-b49d-de7265ef6a7b) 。

如需 Windows 開發工具組的詳細資訊,請參閱 Windows 驅動程式套件 (WDK)

如需裝置中繼資料套件的詳細資訊,請參閱 裝置中繼資料套件

另請參閱

指定電腦的硬體識別碼

下載 Windows 驅動程式套件 (WDK)