如何在全球范围内识别不同的计算机?
对于为某台计算机颁发许可证,有什么好方法可以根据其硬件来确定一台唯一的、全局不同的计算机(如果重要的话,它们将始终运行 Windows)。
stackoverflow 上已经有这个问题的一些答案,但我已经在各种计算机上测试了所有方法,但没有一个真正有效。
此类硬件识别的常见方法有哪些? Windows 如何做到这一点?
以下是我使用 WMI 测试的结果:
CPU-ID 建议此处
对于两台相同的计算机来说是相同的
在克隆驱动器(使用 Acronis TrueImage 测试)映像上是相同的
Windows 操作系统序列号
这是相同的在克隆驱动器上图像。
建议的主板序列号此处
我发现一些 PC 的 WMI 根本不返回序列号
也许 WMI 不返回适合这项工作的工具?是否还有另一个 API 可以避免我查询硬件详细信息?
Possible Duplicate:
Is there some uniqueID of each computer, to differentiate one from other?
For issuing licenses for a certain computer, what would be a good way to determine a unique, globally distinct computer (they will always run windows if that matters) based on their hardware.
There are already some answers to this question on stackoverflow but I have tested all the approaches across a wide range of computers and none of them really work.
What are common approaches to such hardware identification? How might Windows do it?
Here is what I tested using WMI:
CPU-ID as suggested here
It is the same to two identical computers
Harddrive Volumne-ID as suggested here or here
It is the same on a cloned drive (tested with Acronis TrueImage) image
Windows OS serial key
It is the same on a cloned drive image.
Motherboard serialnumer as suggested here
I have found some PCs where WMI does not return a serial number at all
Maybe WMI is not the right tool for the job? Is there another API somewhere out there that lest my query hardare details?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
本文介绍如何创建机器通用唯一标识符:
创建 MachineGUID
一种解决方案是将尽可能多的此 ID 合并为一个 ID,该 ID 的重复率要低得多:
This article describes how to create a Machine Universally Unique Identifier:
Creating a MachineGUID
One solution would be to combine as many of this ID's into one ID that has a much lower rate of being a duplicate: