Permanent system / processor identifier that remains on permutations and disk changes (C #)

I am looking to create a unique identifier for some of the embedded systems that I manage. The systems run Windows Embedded 7 Standard and .NET 4.0. Identifiers must:

  • Be relatively unique - each embedded system runs on the same motherboard, disk, etc., and I can’t run into it.
  • Save reinstallations - these computers are regularly updated with new versions of our software.
  • You can’t rely on the serial number of the drive — we don’t use real drives, but rather CF cards with a CF to SATA adapter, and CF cards change periodically.

In addition, I have several network adapters in the car, so using an internal on-board network adapter will only work if someone tells me how to determine which network adapter is on board via a USB device. After further research, it seems like this is not possible with managed code.

What is the best way to accomplish this?

+3
source share
1 answer

I suggest you use WMI to get information about the CPU of a machine using Win32_Processor . Then you can build a unique identifier for the machine from attributes such as ProcessorIdand UniqueId.

, "" .

+2

Source: https://habr.com/ru/post/1768412/


All Articles