[Hyper-v] Change Windows System SID to Fix the Issue of Cloned Windows System Unable to Join Domain

After using virtualization technologies like Hyper-v, the installation of large-scale virtual systems will directly become cloning of virtual disks. However, since Windows 2000, the systems have a unique SID (Security ID). When managing a large number of virtual hosts using a domain, directly cloned systems cannot be joined to the domain. Therefore, it is necessary to change the SID of the cloned system. The method is as follows:

For Windows 2000/XP/2003, you can generally use the newsid.exe tool provided by Microsoft to change the SID.

  1. Download newsid.exe. For download address and operation steps, refer to the following link:

  2. Place the file in %systemroot% and execute the following command:

newsid.exe /a [new pc name]

Parameter explanation:

/a: Run the SID initialization operation in the background
/d: Delay restart after completion
/n: Do not restart after completion
/?: View usage help
[new pc name]: The computer name that needs to be reset

/d and /n cannot be used at the same time.

  1. Restart the computer.

For Windows 7/8/2008, you can only use the system initialization installation tool SysPrep to initialize a SID.

  1. Execute the command C:\Windows\System32\Sysprep\Sysprep.exe

  2. When selecting the mode Enter System Out-Of-Box Experience (OOBE) and Enter System Audit Mode, choose Enter System Out-Of-Box Experience (OOBE).

  3. Click Generalize. After completion, restart the computer to initialize the system's SID.

Note: Microsoft officially recommends using SysPrep to initialize the SID. Please backup the system and user data before performing any operations.

Reference link:

Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.