6

We had Sharepoint farm with domain "ABC". we have moved new domain "XYZ" and domain "ABC" no longer exist now. i want to migrate entire sharepoint farm from "ABC" to "XYZ" now. how do i proceed. please guide step by step

2 Answers 2

3

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.

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

  2. 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 Administrator, WSS_WPG, WSS_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

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

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

Refer: http://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: http://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

Check this blog http://blogs.technet.com/b/sushrao/archive/2011/12/02/sharepoint-migrating-sharepoint-server-from-one-domain-to-another.aspx

It contain a detailed steps to migrate SharePoint server to new domain.

Hope that will help you!

3
  • 1
    Please don’t add just a link as answer to a question. If the link breaks, the answer you provided will not be useful for future visitors. Provide an answer of your own and use the link as reference. If needed, you can block quote the content from your link. More information is found in our help center, especially How do I write a good answer
    – Benny Skogberg
    Oct 13, 2014 at 10:13
  • 1
    Sure benny, will take care next time.
    – ateet
    Oct 13, 2014 at 10:41
  • Only problem I have with this answer is that it is for a Single Server migration and the Question says a "SharePoint Farm" When I see farm I as a SharePoint Admin have to think, they are wanting to migrate more than a single Server setup, most common setup being a Farm with a WFE, APP, DB, and AD Servers all on separate hardware or VM's this method will not work for a farm with more than one server.
    – Shane Gib.
    Apr 9, 2018 at 20:14
3

I am assuming you are talking about Farm Migration not one server migration.

Migrating SharePoint farm from one domain to another is not easy process. You have to build new Farm on new Domain then restore the SharePoint farm backup. You can Move the SQL Server to different domain without any issue.

There are hard coded references, so that is not supported(farm's domain migration)

Here are the steps which should be perform in order to complete the migration.

  • Backup your current farm(sharepoint farm backup).
  • Disjoin the existing servers from current domain.
  • Join the servers(Including the SQL Server) to the new domain.
  • Re-create a configuration database in the new SQL location.(means rebuild the farm)
  • Restore the farm from farm's backup.
  • Restore any customizations (Customized web.config for forms authentication may apply.)
  • Run the Migrate User to move all users from old domain to new.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.