tencent cloud

All product documents
Cloud Virtual Machine
Modifying SID
Last updated: 2024-01-06 17:38:11
Modifying SID
Last updated: 2024-01-06 17:38:11

Overview

Windows 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.

Must-knows

Instruction in this document is only applicable to Windows Server 2008 R2/2012/2016.
To modify the SIDs of multiple CVMs at the same time, you can create a custom image (select "run sysprep to create the image").
Modify the SID may cause data loss or system damage. We recommend you create a system disk snapshot or image in advance.

Directions

Using sysprep to modify the SID

Note:
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.
2. In the operating system interface, right-click

> Run, enter cmd, and press Enter to open the admin command line.
3. 
In the admin command line, run the following command to save the current network configuration.

ipconfig /all
4. In the admin command line, run the following command to open the sysprep tool.
C:\\Windows\\System32\\Sysprep\\sysprep.exe
5. In the System Preparation Tool 3.14 window that pops up, make the following configurations.
Set System Cleanup Action to Enter System Out-of-Box Experience (OOBE) and check General.
Set Shutdown Options to Reboot.
6. Click OK, and the system restarts automatically.
7. After the startup is complete, follow the wizard to complete the configuration (select language, reset password, etc.).
8. In the operating system interface, right-click

> Run, enter cmd, and press Enter to open the admin command line.
9. Run the following command to verify whether the SID has been modified.
whoami /user
If a message similar to the following is returned, the SID is modified.


10. Reset ENI information (such as IP address, gateway address, DNS, etc.) based on the network configuration information saved in Step 3.

Using sidchg to modify the SID

1. Log in to your CVM.
2. Access and download the sidchg tool through IE browser. The download address of sidchg tool: http://www.stratesave.com/html/sidchg.html
3. Using the admin command line to run the following command and open the sidchg tool. In this example, the sidchg tool is saved on C: drive and named as “sidchg64-2.0p.exe”.


/R means automatic restart after modification, and /S means shutdown after modification. For details, please see SIDCHG Official Instructions.
4. Enter license key or trial key as prompted by the page, and press Enter.
5. Enter Y as prompted by the page, and press Enter.


6. In the prompt box for modifying the SID, click OK to reset the SID. The system restarts during the reset.


7. After the startup is completed, right-click

> Run, enter cmd, and press Enter to open the admin command line.
8. Run the following command to verify whether the SID is modified.
whoami /user
If a message similar to the following is returned, the SID is modified.


Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support