Replace sysprep with newsid

Source: Internet
Author: User

In the last article, I mentioned that a virtual machine image may encounter many strange problems when it is used multiple times. This time I encountered another.

I used an image of Windows Server 2008 R2 and copied it six times. I created six virtual machines and joined them to the same domain.

When you add a domain user to a local user group when operating on a non-Domain-controlled virtual machine, the following error is reported:

Error message: A member cocould not be added to or removed from the local group because the member does not exist.

 

In an ultra-Clean System, the user name is normal. How can this happen? This may be the reason, because these systems are made from the same image and their Sid is the same. when a user group is added, this machine uses the SID as the identifier to contact the domain controller. However, the SID of the machine is the same as that of the domain controller. Therefore, you can find yourself and the result cannot be found. An error is returned.

 

If multiple virtual machines share the same Sid, there are many strange problems. For example, when using remote desktop, domain accounts cannot be logged in. for example, exchange cannot be installed, and domain control cannot be found in the error message. therefore, if you use the same image (vhd) in the setup virtual machine environment, you must replace the SID. otherwise, there are a lot of problems and it is difficult to troubleshoot.

 

Solution

============

Newsid has been retired, and newsid cannot be used on Windows Server 2008 R2.

You need to use the sysprep tool that comes with the system.

Run according to the settings. Restart.

 

 

Note:

After sysprep is run, information about the joined domain is lost, and the machine name is lost. therefore, non-domain control machines need to return to the domain before running sysprep. for domain control, depromo must be changed to a common machine before sysprep.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.