What is a good unique PC identifier?

后端 未结 13 2113
深忆病人
深忆病人 2020-11-27 10:59

I\'ve been looking at the code in this tutorial, and I found that it uses My.Computer.Name to save settings that shouldn\'t roam between computers. It\'s entire

13条回答
  •  盖世英雄少女心
    2020-11-27 11:42

    Some good identifiers:

    • MAC Address: It's fairly easy to get at, and it's usually unique. However, it can be spoofed/changed rather easily, so it depends on how unique it needs to be.
    • CPU Serial Number: It's not available on lots of older systems, but it's there. Check out this MSDN page. It won't change, but it's bound to a computer.
    • HDD Serial Number: It's likely to not change, but can be a nuisance if the HD fails. Check out this MSDN page.

提交回复
热议问题