如何通过命令提示符获取硬件ID /序列号? [英] How can I get hardware ids/serial numbers through command prompt?

查看:2588
本文介绍了如何通过命令提示符获取硬件ID /序列号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最后,我将在Java Applet中使用它来为用户提供额外的安全性。我知道这是可能的,因为我记得以前做,我只是不记得获取正确的信息的行。

Eventually I'm going to be using this in Java Applet for extra security to the user. I know it's possible because I remember doing it before, I just can't remember the line that gets the correct information.

我正在搜索一行将返回处理器ID,序列号。

I'm searching for a line that will return the Processor ID, Serial number. Just these two are fine.

我使用google并尝试了几个命令,如wmic bios get serialnumber,它不返回任何东西。

I have used google and tried a few commands like "wmic bios get serialnumber" and it doesn't return anything.

处理器ID和序列号应该是两个唯一的数字或字符串。

The Processor ID and Serial number should be two unique numbers or Strings.

推荐答案

BIOS序列号通常不设置。

The BIOS serial number often is not set.

这应该总是给你一个类似命令的唯一硬件信息:

This should always give you unique hardware information with a similar command:

wmic csproduct get uuid

更多的信息,以确保它是独一无二的。例如:

You could also combine this info with more information to be sure it is unique. Some examples:

wmic csproduct get uuid,name
wmic bios get name,version

这篇关于如何通过命令提示符获取硬件ID /序列号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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