Microsoft's operating system uses a security identifier (SID) to identify computers and users. CVM instances created with the same image will have the same SID and might experience domain log-in issues. If you need to build a Windows domain environment, you will need to modify the SID.
This document takes the CVM with Windows Server 2012 operating system as an example to describe how to modify the SID using sysprep and sidchg tools of the system.
- After using sysprep to modify the SID, you need to manually reset some system parameters, including IP configuration information.
- When you use sysprep to modify the SID, C:\Users\ Administrator will be reset and some data on the system disk will be erased. Please back up data.
In the operating system interface, right-click > Run, enter cmd, and press Enter to open a Admin command line.
In the admin command line, execute the following command to save the current network configuration.
ipconfig /all
In the admin command line, execute the following command to open the sysprep tool.
C:\Windows\System32\Sysprep\sysprep.exe
In the “System Preparation Tool 3.14” window that pops up, make the following configuration.
whoami /user
If a message similar to the following is returned, the SID has been modified.
10. Reset ENI information (such as IP address, gateway address, DNS, etc.) based on the network configuration information saved in Step 3.
http://www.stratesave.com/html/sidchg.html
/R
means automatic restart after modification, and /S
means shutdown after modification. For details, please see SIDCHG Official Instructions.whoami /user
If a message similar to the following is returned, the SID has been modified.
Was this page helpful?