WMI Win32_BaseBoard序列号 [英] WMI Win32_BaseBoard SerialNumber

查看:811
本文介绍了WMI Win32_BaseBoard序列号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Win32_BaseBoard SerialNumber属性来获取主板序列号,它在大多数情况下都有效,但是有时在某些计算机上,我会得到SerialNumber ="Base Board Serial Number".

I used Win32_BaseBoard SerialNumber property to obtain the motherboard serial number and it work most of the time, but sometimes in some computers I get SerialNumber = "Base Board Serial Number" as a result.

是否有一种编程的方式来更有效地获取此序列号,或者仅仅是制造商的问题?我听说所有主板都带有序列号,无一例外.这是真的吗?

Is there a programmatic way to obtain this serial number in a more efficient way or it is simply a manufacturer problem? I have heard that all motherboards come with a serial number with no exception. Is this true?

推荐答案

各种WMI查询返回的序列号是否正确将取决于设备制造商.请参阅此stackoverflow问题的答案,主板ID-WMI C ++可靠吗?其中包含一个几个例子表明您的结果可能会有所不同.

Whether the Serial Number returned by various WMI queries will be correct or not will depend on the manufacturer of the device. See the answer to this stackoverflow question, Motherboard ID - WMI C++ Reliable? which contains a couple of examples showing that your results can vary.

一些变量包括设备是否为OEM,以及设备是从销售给最终客户的制造商(例如Dell)还是从销售设备的制造商那里购买的,然后再分销商对其进行配置,或者该设备是否是从设备制造商那里购买的是从购买的零件组装而成的.

Some of the variables are whether the equipment is OEM or not and whether the equipment was purchased from a manufacturer who sells to the end customer such as Dell or a manufacturer who sells equipment to resellers who then configure the equipment or if the equipment was assembled from purchased parts.

这些结果正在处理由几个不同的WMI查询检索的属性.

Those results are processing the properties retrieved by several different WMI queries.

L"SELECT * FROM Win32_SystemEnclosure",
L"SELECT * FROM Win32_BaseBoard",
L"SELECT * FROM Win32_BIOS",
L"SELECT * FROM Win32_ComputerSystem",
L"SELECT * FROM Win32_ComputerSystemProduct",
L"SELECT * FROM Win32_MotherboardDevice",

例如,这里的销售终端显示丢失的序列号信息.目的似乎是经销商,经销商或其他供应商将提供他们自己的序列号以及其他信息,以基本上对终端进行重新标记.

For instance here is from a point of sale terminal that shows missing serial number information. The intent seems to be that the reseller or dealer or other vendor will provide their own serial number along with other information to basically relabel the terminal.

Connected to ROOT\CIMV2 WMI namespace

Query for SELECT * FROM Win32_SystemEnclosure
  SMBIOS SerialNumber: None
  SMBIOS Name: System Enclosure
  SMBIOS SMBIOSAssetTag: None
  SMBIOS Manufacturer: To Be Filled By O.E.M.

Query for SELECT * FROM Win32_BaseBoard
  SMBIOS SerialNumber: None
  SMBIOS Product: EIN70-SAM
  SMBIOS Name: Base Board
  SMBIOS Manufacturer: INTEL Corporation

Query for SELECT * FROM Win32_BIOS
  SMBIOS SerialNumber: None
  SMBIOS Name: BIOS Date: 10/15/13 20:06:15 Ver: 04.06.05
  SMBIOS Manufacturer: American Megatrends Inc.

Query for SELECT * FROM Win32_ComputerSystem
  SMBIOS Name: GENPOSA-1
  SMBIOS Manufacturer: To be filled by O.E.M.

Query for SELECT * FROM Win32_ComputerSystemProduct
  SMBIOS Name: EIN70-SAM
  SMBIOS IdentifyingNumber: None
  SMBIOS UUID: 03000200-0400-0500-0006-000700080009

这篇关于WMI Win32_BaseBoard序列号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆