硬盘序列号中的有效字符是什么? [英] What are the valid characters in HDD Serial number?

查看:140
本文介绍了硬盘序列号中的有效字符是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.

我正在开发一个项目,该项目使用主磁盘的HDD序列号来详细说明机器指纹.

我想清除一些东西.我到处看到许多帖子都在谈论分区签名,好像是HDD序列号一样.我说的是被查阅时磁盘提供的 HDD序列号.

在该过程中,我在客户端计算机中遇到了错误.我有机会在那台机器上进行实验,并且似乎每次代码使用WMI请求序列号时,系统有时都会返回正确的值,有时返回的字符串显然是随机的.

该代码在大约200台不同的机器上运行良好...但是在那台机器上失败了...

我以为是硬盘故障.

所以...我想知道是否有人知道(如果存在):硬盘序列号中允许使用的字符是什么?

如果可以检查字符,则可以重试请求,直到获得逻辑"串行值.

谢谢.

PD:对不起,如果我的英语表达不正确或简介过长. :)

Hi everyone.

I''m developing a project that uses the HDD serial number of main disk to elaborate a machine fingerprint.

I want to clear something. I have seen many post everywhere talking about the partition signature as if was the HDD serial number. I''m talking about the HDD SERIAL NUMBER provided by the disk when is consulted.

In that process I encountered and error in a client machine. I had the oportunity to make experiments with that machine, and seems each time the code requests the serial number using the WMI, the system return sometime the correct value and sometimes returns string apparently random.

The code is working good in aproximately 200 different machines... but in that machine fails...

I assumed maybe is a malfunction in the harddisk.

So... I want to know if somebody know (if that exists): What are the allowed characters in a harddisk''s serial number?

If I can check the characters, I can retry the request until to get a "logic" serial value.

Thanks.

PD: Excuse me if my expressions in english are not correctly or the introduction too long. :)

推荐答案

它是特定于制造商的字符串",其翻译为英文:他们可以在其中放置任何喜欢的东西".
通常,它仅是大写字母数字,并带有一些特殊字符(连字符,斜杠,空格是常规字符).

确定要正确检索它吗?它不太可能会更改并且驱动器仍然可以正常运行,因此我要检查的第一件事是所使用的代码.您是否有可能从伪装成HDD的固态设备获取ID?以USB磁盘为例?

可能值得多次阅读并进行比较以查看其变化-但我不确定WMI何时读取信息-只是在设备检测时还是根据需要.
It''s a "manufacturer specific string" which translates to English as: "They can put anything they like in there".
Normally, it is upper case Alphanumeric only, with a few special characters (hyphen, slash, space are the normal ones).

Are you sure you are retrieving it correctly? It is unlikely that it would change and the drive still function properly, so the first thing I would be checking is the code I was using. Is it possible that you are getting the ID from a solid-state device pretending to be a HDD instead? A USB disk for example?

It may be worth reading it several times and comparing them to see it it changes - but I''m not sure when WMI reads the info - just on device detect, or on demand.


这篇关于硬盘序列号中的有效字符是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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