I use virtual machines every day to test software or write tutorials for a few cases. To do this quickly and safely, I clone the exact VM image, so I run the tests in a clean and stable Windows environment. In other cases, when you need to reset the domain computer, I use a pre-built disk image to quickly clone this machine. In both cases, I need to change the Security Identifier (SID) and computer name of the Machine after the cloning process to ensure that the cloned machine (VM or physical) works perfectly. I think this should be done to avoid problems due to duplicate names or SIDs on the same network.
In this article, you can find detailed instructions on how to change the SID of a Windows Machine.
How to change a computer’s SID in Windows 7 and Server 2008.
In my opinion, the safest and easiest way to change the SID of a Windows Machine is to use the system preparation tool (sysprep). So let’s start:
1. Open Windows Explorer and navigate to it C:\Windows\System32\sysprep\ folder.
2. Right click at sysprep.exe file and select Run as administrator.
3. Yes System preparation toolpress to select Generalization check the box, leave other settings* unchecked and click OK.
* System cleanup action = Enter System Out-of-Box Experience (OOBE), Shutdown options = Restart
4. When the system restarts, select yourself Country / region, Time and currency & Keyboard layout settings and press The next one.
5. Enter your username and computer name and click Next.
6. Enter the password (if desired) and click The next one.
7. Accept the License Terms & press The next one.
8. Choose how Windows protects your computer. (e.g. choose to use recommended settings)
9. install the Time and The date settings and press The next one.
10. Now wait for Windows to complete your setup.