abdulhafeez
Assistant Engineer
Assistant Engineer
  • UID4972
  • Fans4
  • Follows5
  • Posts42
Reads:477Replies:0

Alibaba Cloud Tech Share - [Solution]: Using sysprep to reset SID, if you are unable to join ECS to

Created#
More Posted time:Feb 24, 2018 1:16 AM
Using sysprep to reset SID, if you are unable to join ECS to domain due to same SID error

Hi,

I am posting step by step guide to how to use "sysprep" script to solve issue of same SID error and due to this you can not join ECS instance to Active Directory domain. Each ECS created from Alibaba OS image will carry same SID, so you need to run this on all ECS servers which you want to join to Active directory domain.

1. Download "sysprep.ps1" script from below link:
http://docs-aliyun.cn-hangzhou.oss.aliyun-inc.com/assets/attach/40846/cn_zh/1512628123196/Sysprep.ps1?spm=a2c4g.11186623.2.5.b4xYeG&file=Sysprep.ps1

2. Copy sysprep.ps1 to "c: drive" of server where you want to change SID

3. Open command prompt.. Run cmd.. as administrator

c:>whoami /user
check SID before running sysprep, keep note

4. To change SID, run this at command prompt, server will be restarted after sysprep:
c:\>powershell -executionpolicy bypass -file c:\sysprep.ps1 -ReserveHostname -ReserveNetwork -skiprearm -post_action "reboot"


Enter new password for administrator account.

Note: if you use " -skippassword ", then the password will be  changed to default password "Aliyun1A", you have to login using that default password, and you have to change it from windows

5. run at CMD
c:>whoami /user
check SID after running sysprep, keep note

6. Post check after sysprep:
- check if time/time zone is correct after sysprep
- if server has got Data disk attached before, after running sysprep data disk will be in Offline state, you need to make it online from disk management(windows)
- check drive letters, change if you need

orginal source (chinese): https://help.aliyun.com/knowledge_detail/40846.html?spm=5176.11065259.1996646101.searchclickresult.1fdf4098vUpoe3

Note: If this post helped you in what you were looking for or helped you in fixing your issue, please don't forget to like this post " Hit the Like button".
Feel free to share this post to anyone because SHARING IS CARING :)

Thank you,
Abdul Hafeez
[abdulhafeez edited the post at Mar 8, 2018 4:44 AM]
Guest