Friday, 17 August 2012

Steps to change Server URL/Machine name after deploying Dynamics CRM 2011

Recently, I came across a situation where I needed to rename my development machine having MS Dynamics CRM 2011 & SQL server 2008 installed on it. If you change the machine name casually then you will not be able to browse any of the existing organizations. Also, the CRM Asynchronous service won’t be started.

Ideally, there are only 3 simple steps, which if followed correctly, can bring all Organizations again up & running with a new url. Below are the steps –

Word of Caution: Please take backups of your registry and Database before making any change to them or take help of the concerned Administrator to help you.

1. Rename the Machine

  • Rename the Machine and change it IP Address if required.
  • Restart the machine.

2. Update the Registry entry

  • Open the Registyr Editor using - Start > Run > Regedit.exe
  • Then Move to KEY_LOCAL_MACHINE\Software\Microsoft\MSCRM node and
    • Double Click on configdb key and change the DataSource from OldServerName to NewServerName
    • Double Click on ServerUrl key and change the URL to point to the NewServerName

3. Update the details in MSCRM_CONFIG database

  • Open SQL Server Management Studio and run the below script -
USE [MSCRM_CONFIG]
GO
 
UPDATE [Server] SET [Name] = 'NewServerName';
 
UPDATE ConfigSettings SET [HelpServerUrl] = 'http://NewServerName:5555/';
 
UPDATE Organization SET
[ConnectionString] = REPLACE([ConnectionString],'OldServerName ','NewServerName’),
[SqlServerName] = 'NewServerName ', 
[SrsUrl] = 'http://NewServerName /reportserver';


  • Restart the machine.

Disclaimer: Following of the above steps is purely the reader’s sole decision and in no case the author could be held responsible for loss of any kind arising after following.

Referred Link:

http://weblogs.asp.net/navaidakhtar/archive/2012/03/09/Microsoft-Dynamics-CRM-2011-_2F00_-4.0-Configuration-in-Case-of-Machine-rename-_2F00_-CRM-Database-server-change-_2F00_-Domain-Controller-Change.aspx

9 comments:

  1. Great advice - worked perfectly for me. Thanks Ankit!

    ReplyDelete
  2. Surely there is more to it than that?

    ReplyDelete
  3. Does anyone know if this would work for CRM Dynamics 4.0?

    ReplyDelete
  4. Hi Steve,

    I did not try it with 4.0, but, i think this process should work in similar fashion for 4.0 too.

    ReplyDelete
  5. Good morning, do you have any tips about chaning the domain on a CRm 4.0 deployment?

    bryan.holmstrom@cohnreznick.com

    ReplyDelete
    Replies
    1. Hello Bryan,

      As specified above, I did not try it with 4.0, but the above process should work in similar fashion with CRM 4.0 too.

      Delete
  6. Excellent!!!, works perfect!, Thank you Ankit!

    Luis Manuel

    ReplyDelete
  7. HI , CAN YOU ADVICE HOW IT WILL BE IN CASE OF CHANGING DOMAIN FOR CRM 2011. PLEASE

    ReplyDelete
  8. The following link may help you.
    http://community.dynamics.com/crm/f/117/t/201858

    Thanks,
    Ankit

    ReplyDelete