banner
李大仁博客

李大仁博客

天地虽大,但有一念向善,心存良知,虽凡夫俗子,皆可为圣贤。

[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: http://technet.microsoft.com/zh-cn/sysinternals/bb897418

  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: http://blog.sina.com.cn/s/blog_640e1d160100o6u0.html

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