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.
-
Download newsid.exe. For download address and operation steps, refer to the following link: http://technet.microsoft.com/zh-cn/sysinternals/bb897418
-
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.
- Restart the computer.
For Windows 7/8/2008, you can only use the system initialization installation tool SysPrep to initialize a SID.
-
Execute the command C:\Windows\System32\Sysprep\Sysprep.exe
-
When selecting the mode Enter System Out-Of-Box Experience (OOBE) and Enter System Audit Mode, choose Enter System Out-Of-Box Experience (OOBE).
-
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