Search code examples
c#.netwinapic#-2.0hardware-id

Help with Hardware ID


I'm using C# and .NET 2.0. My app needs some way to check the different users so I'll use hardware id, but I saw that I can use only:

  • mac address - easily changeable and not everybody have it // NO
  • processor id - using WMI it returns a value for the cpu model, it's not unique // NO
  • motherboard serial - not every motherboard have it // NO
  • the Windows's volume serial - I'm not sure if it will be changed on Windows reinstall and format of the volume

So is there something I didn't mention for hwid? I want something that everybody have and it won't be erased on windows reinstall. Else I'd have to use the windows's volume serial number.


EDIT: From the commments I think it's best to use HDD id. How to get it? EDIT2: I just read that the SCSI drives don't have serial. Is that true?

FINAL EDIT: I'm already using the root drive serial on my app. It work's pretty well. Thanks all.


Solution

  • HDD Serial number: unique, unchangeable, and everyone has it.

    not a perfect option but...