Windows is using machine IDs (the "SID") to join other security contexts, not (only) the name.
Windows uses SIDs to represent not just machines, but all security principals. Security principals include machines, domain computer accounts, users and security groups. Names are simply user-friendly "representations" for SIDs, allowing you to rename an account and not have to update access control lists (ACLs) that reference the account to reflect the change.
A SID is a variable-length numeric value that consists of a structure revision number, a 48-bit identifier authority value, and a variable number of 32-bit subauthority or relative identifier (RID) values.
The supported way to create a "unique" Windows installation from a clone (or restore) is to prepare the system by running the \Windows\System32\Sysprep\sysprep.exe
tool.
This is called "generalizing" the image, because when you boot an image created using this process, Sysprep specializes the installation by generating a new machine SID, triggering plug-and-play hardware detection, resetting the product activation clock, and setting other configuration data like the new computer name.
One upon a time there was a tool namend newsid
to "just" update the machine SID, but it has been retired.