CPU serial number

后端 未结 13 1540
情话喂你
情话喂你 2020-12-06 05:38

How do I obtain the serial number of the CPU in a PC?

相关标签:
13条回答
  • 2020-12-06 05:41

    Use the CPUZ tool: http://www.cpuid.com/cpuz.php

    0 讨论(0)
  • 2020-12-06 05:45

    In windows, I am sure there is a system call, In linux one could try "sudo lshw" but most kernels do not seem to support CPU serial numbers, and preliminary research seems to indicate that the general outrage against uniquely identifiable computers means that there is no perfect answer.

    What are you trying to do? Almost certainly someone has done it before and it may be wise to reuse or emulate what they have done.

    0 讨论(0)
  • 2020-12-06 05:48

    Ivy Bridge CPUs and newer all include a PPIN (Protected Processor Identification Number). Access to this feature can be blocked by the computer's firmware.

    https://lore.kernel.org/patchwork/patch/736614/

    0 讨论(0)
  • 2020-12-06 05:50

    I have the ultimate answer for this without any external libraries. Simply type this:

    wmic bios get serialnumber

    This will give you the Serial Number on the PCs chassis ;) (found in microsoft's knowledge base)

    Regards!

    0 讨论(0)
  • 2020-12-06 05:52

    Some more details please: operating system, language.

    For example on Windows you can get it by using WMI and reading Win32_Processor.ProcessorId.

    0 讨论(0)
  • 2020-12-06 05:56

    __get_cpuid (unsigned int __level, unsigned int *__eax, unsigned int *__ebx, unsigned int *__ecx, unsigned int *__edx);

    • Header: #include <cpuid.h>

    Note: The processor serial number was introduced on Intel Pentium III, but due to privacy concerns, this feature is no longer implemented on later models.

    Source : wikipedia

    0 讨论(0)
提交回复
热议问题