重要
设备元数据已弃用,并将在 Windows 的未来版本中删除。 有关此功能的替换信息,请参阅 驱动程序包容器元数据。
ComputerHardwareIds (ComputerHardwareIds.exe) 是 Windows 驱动程序工具包 (WDK) 命令行工具,可用于为供应商的计算机系统的特定模型生成硬件 ID。 供应商可以使用这些硬件 ID 将设备元数据包与该特定计算机模型匹配。
在运行 Windows 7 或更高版本的 Windows作系统的系统上支持 ComputerHardwareIds 工具。 此工具包含在目录下的 Windows 驱动程序工具包(WDK)中 bin
。 32 位 Windows 平台(x86)和 64 位 Windows 平台(x64)有单独的版本。
有关下载和安装 WDK 的信息,请参阅下载 Windows 驱动程序工具包 (WDK)。
运行 ComputerHardwareIds
若要运行 ComputerHardwareIds,请在命令提示符处键入命令。
C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64>ComputerHardwareIds> ComputerHardwareIds
参数
没有
注释
ComputerHardwareIds 工具基于计算机系统管理 BIOS(SMBIOS)中字段的信息为计算机创建硬件 ID。 有关字段的列表,请参阅 为计算机指定硬件 ID。
有关为计算机选择硬件 ID 值以及有关设备元数据包的详细信息,请参阅 为计算机指定硬件 ID。
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.)通常使用第二个硬件 ID(d7be59e5-29b5-589a-b49d-de7265ef6a7b)作为供应商设备元数据包的 PackageInfo XML 文档中HardwareID 元素的值。
有关 Windows 开发工具包的详细信息,请参阅 Windows 驱动程序工具包(WDK)。
有关设备元数据包的详细信息,请参阅 设备元数据包。