Logo

Migrating SharePoint Server from one domain to another

photo

2025年04月22日

参考文章:

https://learn.microsoft.com/zh-cn/archive/blogs/sushrao/sharepoint-migrating-sharepoint-server-from-one-domain-to-another

https://www.vyapinsoftware.com/blog/how-to-move-sharepoint-servers-to-different-domain-new-ad

You have a Single Server farm and would like to migrate SharePoint server to a new domain

Old Domain: FABRIKA.CONTOSO.COM

New Domain: CONTOSO.COM

Step 1: Preparations before migrating servers:

1.Check if the SharePoint Central Administration’s Application Pool is running under Network Service or using a Domain Account

To verify:

a. Open IIS manager –>Expand Web Sites –> Right Click on SharePoint Central Administration –> Properties –> Home Directory Tab and then locate the Application Pool mapped

b. Right click on the Application Pool and then Click on then Identity Tab.

Note: If the Application Pool is running under Network Service then we can skip the next step.

2. Create a new service account in the new domain (CONTOSO.COM)

3. Open SQL Management Studio and backup all the SharePoint related databases including configuration database.

Step 2: Making SharePoint Server a member server of a Different Domain

1. Right click on My Computer

2. Click on Properties

3. Under Computer Name click on Change…

4. Set it to Workgroup (Restart)

After the restart of the server, join the server back to the domain following 1 – 3 section however, pointing it as a member of new domain (CONTOSO.COM).

Step 3: Setting up Service Account Rights:

Add the newly created service account to the Local AdministratorWSS_WPGWSS_ADMIN & IIS_WPG group

To do so follow:

1. Right click on My Computer

2. Click on Manage

3. Expand Configuration and then expand Local Users and Groups

4. Click on Groups and then from the right pane double click on the appropriate group as mentioned above and add the service account.

Step 4: SQL Permissions:

We have to setup appropriate permission for the new service account in order to make SharePoint Work.

Follow:

1. Open SQL Management Studio and then connect to the server

2. Expand Security

3. Right click on Logins and select new login

4. Under Login name specify the new service account

5. Click on Server Roles and Check (DBCreator & SecurityAdmin)

6. Click on User Mapping and then Check the SharePoint related databases one at a time giving DB_Owner Rights.

Step 5: Updating Service Account:

To update SharePoint with the new service account we have to execute following commands on all the SharePoint Servers.

Open CMD and navigate to cd %commonprogramfiles%\Microsoft Shared\Web server extensions\12\Bin

1. stsadm -o updatefarmcredentials -userlogin CONTOSO\ServiceAccount -password NewPassword

2. stsadm -o updateaccountpassword -userlogin CONTOSO\ServiceAccount -password NewPassword -noadmin

3. stsadm.exe -o spsearch -farmserviceaccount CONTOSO\ServiceAccount -farmservicepassword NewPassword

4. stsadm.exe -o spsearch -farmcontentaccessaccount CONTOSO\ServiceAccount –farmcontentaccesspassword NewPassword

5.stsadm.exe -o editssp -title SharedServicesProviderName -ssplogin CONTOSO\ServiceAccount -ssppassword NewPassword

6. stsadm.exe -o osearch -farmserviceaccount CONTOSO\ServiceAccount -farmservicepassword NewPassword

Note: In case of WSS v3 point no. 5 & 6 is not applicable.

Refer: https://support.microsoft.com/kb/934838

Step 6: Confirm Site loads:

Using the new farm service account attempt to load the SharePoint Central Administration, once it loads successfully attempt to load the Portal Site using the same account.

Step 7: Migrating User Accounts:

Warning: Before you begin ensure that we have migrated all the AD user accounts to the new domain.

Note: When a user is migrated in Active Directory, the Security Identifier (SID) changes for the user. Additionally, the logon information for the user might be changed. Windows SharePoint Services and Microsoft SharePoint Portal Server 2003 store user information based on both the user SID and the user logon information. When the user SID or the user logon information changes in Active Directory, Windows SharePoint Services must be updated with the new user information before the user can access Windows SharePoint Services successfully.

In order to map the old domain account to the new domain account in SharePoint execute following.

Open CMD and navigate to cd %commonprogramfiles%\Microsoft Shared\Web server extensions\12\Bin

Execute: stsadm -o migrateuser -oldlogin DOMAIN\user -newlogin DOMAIN\user -ignoresidhistory

Where OldLogin = User account from the old domain for e.g., FABRIKAM\SUSHRAO

And the Newlogin = Migrated user account CONTOSO\SUSHRAO

Refer: https://technet.microsoft.com/en-us/library/cc262141(office.12).aspx

To migrate the Security Group

stsadm –o migrategroup –oldlogin Domain\group –newlogin Domain\group

Where OldLogin = security group from the old domain for e.g., FABRIKAM\HR

And the Newlogin = Migrated group CONTOSO\HR

Comments

  • Anonymous
    January 01, 2003
    yes, how do you achiever for mutiserver farm? CAn you please answer that? Or it can’t be done?
  • Anonymous
    January 01, 2003
    I want to know a good way to warm up IP addresses for SMTP services, I am willing to pay for a proven methord? Akshat asked 16 hrs ago – 3 days left to answer I want to know a good way to warm up IP addresses for SMTP services, I am willing to pay for a proven methord we Need experts on SMTPs anyone who can warm IP addresses we are willing to pay or someone who can provide to us some warmed up IP addresses. we have tried some services but they were not very good PLEASE CONTACT ASAP
  • Anonymous
    October 29, 2012
    Great Post!, neatly described.
  • Anonymous
    December 12, 2012
    Hi, How does this work if you have multiple WFEs and APP servers in the Farm?
  • Anonymous
    July 11, 2013
    HI, seems to be fine,How to change the configuration DB servcice account?
  • Anonymous
    July 24, 2013
    How does this work if you have multiple WFEs and APP servers in the Farm?
  • Anonymous
    March 24, 2014
    Very useful…
  • Anonymous
    October 30, 2014
    These steps are applicable for SharePoint 2010 also?
  • Anonymous
    March 12, 2015
    I’m about to try and apply this to SP 2010 ….. wish me luck. The server has already been added to a new domain and thus broken SP
  • Anonymous
    April 12, 2015
    Thanks a lot for this info
  • Anonymous
    June 23, 2015
    Is it possible to move domain at any stage (dev, staging, or production)?
  • Anonymous
    June 24, 2015
    The comment has been removed
  • Anonymous
    July 27, 2015
    Great Info!!
  • Anonymous
    August 19, 2015
    Thanks for sharing.
    Share, organise and discover information with Microsoft SharePoint. Read case studies, learn about SharePoint Online and discover Apps for SharePoint. To know more checkhttp://www.office24x7.com/sharepoint-plan.aspx
  • Anonymous
    March 23, 2016
    When i run the command fir stsadm -o … i get farm value cannot be null. Currently admin portal operational, the collections are not. Sharepoint 2010

橙子主题打折出售

其实我不卖,主要是这里是放广告的,所以就放了一个
毕竟主题都没做完,卖了也是坑.

购买它
所有附件
该文章没有附件.
本文为原创文章,请注意保留出处!

留言板

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

热门文章

无法握住的故土 在我们心灵最温暖的角落,总有一寸土地是属于故乡的。虽然我们看似已远离故土,可骨子里对故乡的依恋却是从未冷却过。我们无论漂泊他乡,还是在繁华都市平步青云,可故乡的悠悠情思总会潜入梦乡与你缠绵。是儿时那一缕缕茉莉的清香萦绕在梦境,也是邻家那已锈迹斑斑的铁壶里,开出艳丽的花儿在梦的边缘摇曳。故土就这样根深蒂固地在我们的灵魂深处烙下深深的印记。 作者:Pastore Antonio
1596 浏览量
EWS(Exchange Service)基本使用(获取个人会议,会议室会议内容,会议室列表,发送会议,修改会议,删除会议) 最近公司要求和exchange服务对接,所以稍微研究了一下官方文档,做出以下总结,欢迎大家补充。先...EWS(ExchangeService)基本使用(获取个人会议,会议室会议内容,会议室列表,发送会议,修改会议,删除会议) 作者:Pastore Antonio
1585 浏览量
Sql Server 部署SSIS包完成远程数据传输 本篇介绍如何使用SSIS和作业完成自动更新目标数据任务。**温馨提示:如需转载本文,请注明...SqlServer部署SSIS包完成远程数据传输 作者:Pastore Antonio
1579 浏览量
SQL Server AG集群启动不起来的临时自救大招 背景前晚一朋友遇到AG集群发生来回切换不稳定的情况,情急之下,朋友在命令行使用命令重启WSFC集群...SQLServerAG集群启动不起来的临时自救大招 作者:Pastore Antonio
1573 浏览量
windows 下安装 memcahce 官网上并未提供Memcached的Windows平台安装包,我们可以使用以下链接来下载,你需...windows下安装memcahce 作者:Pastore Antonio
1566 浏览量