Microsoft KB Archive/946980

= How to manually remove the Microsoft Dynamics CRM 4.0 server =

Article ID: 946980

Article Last Modified on 1/4/2008

-

APPLIES TO


 * Microsoft Dynamics CRM 4.0

-



Important This article contains information about how to modify the registry. Make sure that you back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

322756 How to back up and restore the registry in Windows XP and Windows Vista



INTRODUCTION
This article describes how to manually remove the Microsoft Dynamics CRM 4.0 server.



MORE INFORMATION
Typically, you can use Add or Remove Programs in Control Panel to remove the Microsoft Dynamics CRM server. You can also run the Microsoft Dynamics CRM server installation program to remove the Microsoft Dynamics CRM server.

Note You can run the ServerSetup.exe file to run the Microsoft Dynamics CRM server installation program.

However, if a problem occurs when you use one of these methods to remove the Microsoft Dynamics CRM server, you must manually remove the Microsoft Dynamics CRM server.

Note The Microsoft Dynamics CRM server contains many components. These components are related to many applications and to many technologies. For example, the components are related to Windows Server, to Internet Information Services (IIS), to Microsoft SQL Server, to SQL Server Reporting Services (SSRS), and to the Microsoft .NET Framework. Therefore, if you must completely remove the Microsoft Dynamics CRM server, consider completely rebuilding the computer instead of manually removing the Microsoft Dynamics CRM server.

To manually remove the Microsoft Dynamics CRM server, follow these steps.

Note The following steps describe how to remove the applications that are installed in a Full Server configuration. You can use similar steps to remove specific server roles. Additionally, the following steps do not remove all the components that are installed when you install the Microsoft Dynamics CRM server. However, after you follow these steps, you can reinstall the Microsoft Dynamics CRM server.

Step 1: Stop the Microsoft Dynamics CRM Asynchronous Processing service

 * 1) Click Start, point to All Programs, point to Administrative Tools, and then click Services.
 * 2) Right-click Microsoft Dynamics CRM Asynchronous Processing Service, and then click Stop.

Step 2: Stop the Indexing service

 * 1) Click Start, point to All Programs, point to Administrative Tools, and then click Services.
 * 2) Right-click Indexing Service, and then click Stop.

Step 3: Configure the Web site and the application pool

 * 1) Log on to the computer that is running Internet Information Services (IIS). This computer has the Microsoft Dynamics CRM 4.0 Web site installed.
 * 2) Click Start, point to All Programs, point to Administrative Tools, and then click Internet Information Services (IIS) Manager.
 * 3) Expand the computer name, and then expand Web Sites.
 * 4) Right-click the Microsoft Dynamics CRM 4.0 Web site, click Stop, and then click Yes.

Note By default, the name of the Microsoft Dynamics CRM 4.0 Web site is Microsoft Dynamics CRM.
 * 1) Right-click the Microsoft Dynamics CRM 4.0 Web site, and then click Properties. Click the Home Directory tab, click DefaultAppPool in the Application pool list, and then click Remove.
 * 2) Click the ISAPI Filters tab, click CRM.Default.Addon isapi, and then click Remove.
 * 3) Click OK.
 * 4) Expand Application Pools, right-click the Microsoft Dynamics CRM 4.0 application pool, click Delete, and then click Yes.

Note By default, the name of the application pool is CRMAppPool.
 * 1) Close IIS Manager.

Step 4: Delete the Microsoft Dynamics CRM program files and the Microsoft Dynamics CRM folders
To do this, delete the following folder:



Notes  If the Microsoft Dynamics CRM 4.0 server installation program created the Web site, the Web site is located in the following folder:



If you delete this folder, you also delete the Microsoft Dynamics CRM 4.0 Web site. Therefore, if you delete this folder, you have to create a new Microsoft Dynamics CRM Web site when you reinstall the Microsoft Dynamics CRM server. You can also re-create the default folder for the Web site. If you install the Microsoft Dynamics CRM Web site on the default Web site, the Microsoft Dynamics CRM Web site is in the following folder:



Therefore, you have to delete all the files and all the folders except the Aspnet_client folder in the :\Inetpub\wwwroot folder.

Step 5: Delete the Active Directory security groups
 Log on to a domain controller as a user who has rights to delete the security groups. Click Start, point to All Programs, point to Administrative Tools, and then click Active Directory Users and Computers. Expand the domain node. Expand the node of the organizational unit (OU) on which you install the Microsoft Dynamics CRM 4.0 server.</li> Delete the following security groups:  PrivReportingGroup</li> PrivUserGroup</li> ReportingGroup</li> SQLAccessGroup</li> UserGroup</li></ul>

To delete a security group, right-click the security group that you want to delete, and then click Delete.</li></ol>

Note If there is more than one deployment of Microsoft Dynamics CRM 4.0 in the domain, you may have many security groups. To find the correct security group, follow these steps: <ol style="list-style-type: lower-alpha;"> Open SQL Server Management Studio, and then click New Query.</li>  Run the following statement against the MSCRM_Config database. select Id, DatabaseName, FriendlyName from Organization </li> Note the ID of the first organization. The ID is used in the name of the security group.</li> Find the security group in the Active Directory directory service. The name of the security group for the deployment contains the ID that you noted in step c earlier in this section.</li></ol>

Step 6: Remove the SQL Server logins
<ol> Log on to the computer that is running the instance of SQL Server 2005.</li> Click Start, point to All Programs, point to Microsoft SQL Server 2005, and then click SQL Server Management Studio.</li> Expand the computer name, expand Security, and then expand Logins.</li> Locate the following logins: <ul> <li> \PrivReportingGroup</li> <li> \ReportingGroup</li> <li> \SQLAccessGroup</li></ul>

Notes <ul> <li>The  placeholder represents the actual name of the domain in which the logins are located.</li> <li>To determine the groups that belong to the Microsoft Dynamics CRM deployment that you want to delete, compare the complete names of these groups to the names of the groups that exist in the Active Directory. By default, the Active Directory groups exist in the OU that was created by the Microsoft Dynamics CRM server installation program. The group names in the Logins folder of SQL Server Management Studio contain the name and a GUID.</li></ul> </li> <li>Delete the logins. To do this, right-click the login, click Delete, and then click OK.</li> <li>Close SQL Server Management Studio.</li></ol>

Step 7: Remove the Microsoft Dynamics CRM subkeys
Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:

322756 How to back up and restore the registry in Windows XP and Windows Vista

<ol> <li>Click Start, click Run, type regedit, and then click OK.</li> <li>Locate the following registry subkey:

</li> <li>Right-click MSCRM, click Delete, and then click Yes.</li> <li>Locate the following registry subkey:

</li> <li>On the Edit menu, click Find.</li> <li>In the Find what box, type Microsoft Dynamics CRM, and then click Find Next.</li> <li>Right-click the GUID, and then click Delete. For example, the GUID may be 059DD8CB00184F24E99A62CF4D6109FA.</li> <li>Locate the following registry subkey:

</li> <li>Delete all the entries that begin with the following path:



</li> <li>Locate the following registry subkey:

</li> <li>On the Edit menu, click Find.</li> <li>In the Find what box, type Microsoft Dynamics CRM, and then click Find Next.</li> <li>Right-click the GUID, and then click Delete. For example, the GUID may be 059DD8CB00184F24E99A62CF4D6109FA.</li> <li>To find the next entry to remove, press F3.</li> <li>Right-click the GUID, and then click Delete.</li> <li>Repeat steps 14 and 15 to delete all the entries that are in the components registry and in the products registry.</li> <li>Locate the following subkey:

</li> <li>On the Edit menu, click Find. In the Find what box, type Microsoft Dynamics CRM, and then click Find Next.</li> <li>Right-click the GUID, and then click Delete. For example, the GUID may be 059DD8CB00184F24E99A62CF4D6109FA.</li></ol>

Step 8: Use &quot;Add or Remove Programs&quot; to remove the application entry if the application entry still exists
Note Although you cannot use Add or Remove Programs in Control Panel to uninstall the Microsoft Dynamics CRM 4.0 server, you can remove the entries from the Add or Remove Programs list. To do this, follow these steps:
 * 1) Click Start, point to All Programs, click Control Panel, and then click Add or Remove Programs.
 * 2) Click Microsoft Dynamics CRM 4.0 Server, click Remove, and then click Yes.

Step 9: Delete the Microsoft Dynamics CRM server from the Start menu
<ol> <li>Start Windows Explorer, and then locate the following folder:



</li> <li>Right-click the folder, and then click Delete.</li></ol>

Step 10: Delete the Microsoft Dynamics CRM databases
Warning After you complete this step, all the data that is maintained in Microsoft Dynamics CRM is removed. If you want to keep the data, you can skip this step.

To delete the Microsoft Dynamics CRM databases, follow these steps:
 * 1) Log on to the server that is running SQL Server 2005 and on which the Microsoft Dynamics CRM 4.0 databases are installed.
 * 2) Click Start, point to All Programs, point to Microsoft SQL Server 2005, and then click Microsoft SQL Server Management Studio.
 * 3) When you are prompted to connect to a server that is running SQL Server, enter the server on which the Microsoft Dynamics CRM 4.0 databases are installed in the Server name box, and then click Connect.
 * 4) Delete the configuration database.

Note If you want to reinstall the Microsoft Dynamics CRM 4.0 server on this instance of SQL Server, you must delete this database.

To delete the configuration database, expand Databases, right-click MSCRM_CONFIG, click Delete, and then click OK.
 * 1) Delete the organization database.

Note If you want to use a different organization name when you reinstall the Microsoft Dynamics CRM 4.0 server, you do not have to do this step. After you reinstall the Microsoft Dynamics CRM server, you can use the Import Organization wizard in Deployment Manager to import the organization database.

To delete the organization database, expand Databases, right-click  _MSCRM, click Delete, and then click OK.

Note The  placeholder represents the actual organization name.
 * 1) Close SQL Server Management Studio.

Step 11: Delete assemblies in the GAC
<ol> <li>Log on to the computer that has the Microsoft Dynamics CRM 4.0 server installed.</li> <li>Click Start, point to All Programs, point to Administrative Tools, and then click Microsoft .NET Framework 2.0 Configuration.</li> <li>In the Tasks area, click Manage the Assembly Cache, and then click View List of Assemblies in the Assembly Cache.</li> <li>In the Assembly Name pane, delete the following assemblies: <ul> <li>Microsoft.Crm</li> <li>Microsoft.Crm.Admin.AdminService</li> <li>Microsoft.Crm.ApplicationBuildUpgrade</li> <li>Microsoft.Crm.DuplicateDetection</li> <li>Microsoft.Crm.Faxes.FxsComWrapper</li> <li>Microsoft.Crm.Entities</li> <li>Microsoft.Crm.MetadataHelper</li> <li>Microsoft.Crm.ObjectModel</li> <li>Microsoft.Crm.Platform.Passport</li> <li>Microsoft.Crm.Platform.Sdk</li> <li>Microsoft.Crm.Platform.Server</li> <li>Microsoft.Crm.Reporting</li> <li>Microsoft.Crm.ReportingServices</li> <li>Microsoft.Crm.Scheduling</li> <li>Microsoft.Crm.Sdk</li> <li>Microsoft.Crm.SdkProxy</li> <li>Microsoft.Crm.SdkProxy.XmlSerializers</li> <li>Microsoft.Crm.SdkTypeProxy</li> <li>Microsoft.Crm.SdkTypeProxySerializers</li> <li>Microsoft.Crm.SqlGovernor.Proxy</li> <li>Microsoft.Crm.WebStore</li></ul>

Note The names of these assemblies start with &quot;Microsoft.Crm.&quot;

To delete the assemblies, click the assemblies that you want to delete, and then click Delete.</li></ol>

After you complete these steps, you can reinstall the Microsoft Dynamics CRM 4.0 server.

Note Before you reinstall the Microsoft Dynamics CRM 4.0 server, you must restart the Indexing service. Additionally, you must re-enable the Web site. Otherwise, you may receive an error message or a warning message in the Environment Diagnostics wizard when you reinstall the Microsoft Dynamics CRM server.

Keywords: kbmbsinstallation kbexpertisebeginner kbmbsmigrate kbhowto kbexpertiseinter KB946980

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.