windows HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\MachineGuid 是唯一的吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/30676726/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 19:07:04  来源:igfitidea点击:

Is HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\MachineGuid unique?

windowswinapi

提问by John

This pagesays the following:

页面说明如下:

In the Windows registry is a key called MachineGUID that has a UUID which is created by Windows during installation and should in theory be unique to the machine. In practice this is not the case and I have often come across duplicates of this ID between machines.

在 Windows 注册表中有一个叫做 MachineGUID 的键,它有一个 UUID,它是在安装过程中由 Windows 创建的,理论上应该是机器唯一的。实际上,情况并非如此,我经常在机器之间遇到此 ID 的重复项。

I don't understand why it wouldn't be unique, I mean does Windows uses some weak algorithm to generate this GUID or something?

我不明白为什么它不是唯一的,我的意思是 Windows 是否使用一些弱算法来生成这个 GUID 或其他什么?

回答by Dai

If a machine is restored from a backup or clone (such as in disaster-recovery, lab rollout, or fast VM deployment scenarios) then the MachineGuidvalue would be the same on multiple machines.

如果一台机器从备份或克隆中恢复(例如在灾难恢复、实验室部署或快速 VM 部署场景中),那么MachineGuid多台机器上的值将相同。

I note that the key value itself is read/write, so a post-setup or userland application could overwrite this too, even to a duplicate non-unique value.

我注意到键值本身是读/写的,因此设置后或用户空间应用程序也可以覆盖它,甚至是重复的非唯一值。