在硬皮书上检索主板序列号 [英] Retrieve Motherboard Serial Number on a Toughbook

查看:77
本文介绍了在硬皮书上检索主板序列号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的公司有一个PC应用程序,可提取主板序列号以用作软件保护形式.我们增加了一些使用Toughbooks(特别是CF29和CF30)的新客户,他们没有得到序列号,而是得到字符串"none".

在决定使用主板序列号作为我们唯一的计算机ID时,我们进行了大量测试和研究.处理器ID似乎不是唯一的.网络ID(MAC地址)也被认为是不可靠的,因为用户可能有多个,并且,如果我没记错的话,在关闭连接时会返回不同的值.

有谁知道可以使我们从Toughbook中提取主板序列号的修复程序?

我们只是在研究中没有发现任何其他标识符,无论计算机或主板的类型如何,都可以保证这些标识符是可拉动的?

这是我们用来提取主板序列号的代码:

My company has a PC application that pulls the motherboard serial number to use as a form of software protection. We''re adding some new customers who use Toughbooks (Specifically the CF29 and CF30) and instead of getting a serial number they get the the string "none".

We did quite a bit of testing and researching when deciding to use the motherboard serial number as our unique computer ID. The processor ID did not seem to be unique. The network ID (MAC address) was also deemed unreliable, as the user could have multiple and, if I recall correctly, would return different values when connections were shut down.

Does anyone know of a fix that would allow us to pull the motherboard serial number from a Toughbook?

Is there some other identifier that we just didn''t find in our research that can be guaranteed to be pullable regardless of the type of computer or motherboard?

Here is the code we''ve been using to pull the motherboard serial number:

Public Function GetMotherBoardSerialNumber() As String
    Dim strReturn As String = String.Empty
    Dim objList As Object, obj As Object
    Try
        objList = GetObject("winmgmts:{impersonationLevel=impersonate}").InstancesOf("Win32_BaseBoard")
        For Each obj In objList
            strReturn = obj.SerialNumber
        Next
    Catch ex As Exception
        strReturn = String.Empty
        MsgBox(ex.Message)
    End Try

    Return strReturn
End Function

推荐答案

这篇文章对您很有帮助,您可以使用它来找到一个适用于所有系统的唯一系统值.

如何获取硬件信息(CPU ID,主板信息,硬盘序列号,系统信息等) [ ^ ]

祝你好运!
Did you this article, look promising and you could use it to find a unique system value that works on all system.

How To Get Hardware Information (CPU ID, MainBoard Info, Hard Disk Serial, System Information , ...)[^]

Good luck!


这篇关于在硬皮书上检索主板序列号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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