Looking for PowerObjects? Don’t worry, you’re in the right place! We’ve been part of HCL for several years, and we’ve now taken the final step in our acquisition journey: moving our website to the HCL domain. Nothing else is changing – we are still fanatically focused on Microsoft Business Applications!

PowerObjects Blog 

for Microsoft Business Applications


How to Install and Configure the CRM Outlook Client from a Command Prompt

Post Author: Joe D365 |

In today's blog, we'll be showing you how to install and configure the CRM Outlook Client from a command prompt. To install the Microsoft Dynamics CRM for Outlook Client, you must first run the setup to install files on your computer and then configure the CRM for Outlook Client. Start by locating, or downloading, the appropriate installation files. You can download the Microsoft Dynamics CRM 2016 Outlook Client here. If you have the installation disk, you can find the installation files located in the "Client" folder.

It's common to install the client on a local machine by double-clicking the "SetupClient.exe" file, follow the Setup Wizard, and then configure the client using the Configuration Wizard. This is an attended installation, which means that it requires you to interactively provide information so the installation can run successfully. You can find out more information on this process in our blog "Installing Dynamics CRM 2015 for Outlook".

The installation and configuration of the Microsoft Dynamics CRM for Outlook Client can also be run from the command prompt. This provides the opportunity to complete an unattended installation when used in a script file.

Installation Command-line Parameters

The following command-line parameters are available at the command prompt for SetupClient.exe:

Setupclient.exe [/A] [/Q] [/X] [/L or /LV [drive:][[ path] logfilename.log]] [/targetdir "[drive:][ path]"] [/installofflinecapability] [/disableofflinecapability] [/ignoreofflinequeue]
  • /A - Creates an administrative installation of Dynamics CRM for Outlook by creating a Windows Installer package.
  • /Q - Used to run the installation in quiet mode.
  • /X - Used to uninstall Dynamics CRM for Outlook.
  • /L [drive:][[path] logfilename.log] - Used to create a log file of installation activity.
  • /LV [drive:][[path] logfilename.log] - Used to create a verbose log file of installation activity.
  • /targetdir <"drive:path"> - Used to specify the folder in which Dynamics CRM for Outlook files will be installed.
  • /installofflinecapability - Used to install offline capability.
  • /disableofflinecapability - Used to hide the "go offline" button in Outlook.
  • /ignoreofflinequeue - Used to prevent Setup from synchronizing items that may remain in the offline queue during upgrade.

Configuration Command-line Parameters

The following command-line parameters are available at the command prompt for Microsoft.Crm.Application.Outlook.ConfigWizard.exe:

Microsoft.Crm.Application.Outlook.ConfigWizard.exe [/Q] [/i [drive:][[path] XMLConfigurationFile.xml]] [/xa] [/L or /LV [drive:][[ path] logfilename.log]]
  • /Q - Used to run the installation in quiet mode. Using this parameter will require an XML configuration file that the Setup program references and is identified using the /i parameter.
  • /i [drive:][[path] XMLConfigurationFile.xml] - Used to identify the XML configuration file.
  • /xa - Used with the /q parameter to remove all organizations that are configured for Dynamics CRM for Outlook.
  • /L [drive:][[path] logfilename.log] - Used to create a log file of installation activity.
  • /LV [drive:][[path] logfilename.log] - Used to create a verbose log file of installation activity.

XML Configuration File Elements

The following XML elements are available for creating the XML Configuration File:

  • - Root element.
  • true/false - Specifying true will install Microsoft Dynamics CRM for Outlook with Offline Access capability.
  • drive:path - Specifies the folder in which the Dynamics CRM for Outlook files will be installed.
  • - Parent element for all of the following elements:

    • https://website:portnumber - Specifies the URL for the Microsoft Dynamics CRM Discovery Web Service.
    • true/false - Specifies if federated (Azure Active Directory) credentials are used for authentication in the Configuration Wizard.
    • - Parent element for the following <Organization> element.

      • OrganizationName - Specifies the name of the organization that the client will connect to.
    • true/false - Specifies whether Dynamics CRM for Outlook will display the "I want to join the Customer Experience Improvement Program" notification banner.

Automate the Installation and Configuration Process

1. Create a script using Notepad. The text file will look similar to this:

Setupclient /Q /l c:tempclientinstalllog.txt /installofflinecapability /targetdir "c:Program FilesMicrosoft Dynamics CRM Client"Microsoft.Crm.Application.Outlook.ConfigWizard.exe /Q /i c:tempconfig_client.xml /xa /l c:clientinstall.log

2. Navigate to File > Save As. Change the file type to "All Files" and then name the file “logon.bat”.

3. Create a new document using WordPad. The file will look similar to this:

http://crmserver

Constoso

AdventureWorksCycle

false

4. Navigate to File > Save As. Change the file type to "All Files" and then name the file “config_client.xml”.

5. Copy the two new files along with the CRM setup files to your domain controller's SYSVOL folder. You can access this on the server by going to %SYSVOL%.

6. Now you will setup the logon script. On the domain controller, open group policy editor, right click on your Default Domain Policy (or create a new one), and click Edit.

Next, navigate to UserConfigurationWindows SettingsScripts (Logon/Logoff). Finally, double click Logon. Click Browse and double click on your logon.bat

That’s all for the blog today! Check out our blog to learn how to configure the Outlook client via a second federation for even more options. You can also read a deeper dive into this topic on Microsoft’s TechNet resource here.

Happy CRM’ing!

 

 

Joe CRM
By Joe D365
Joe D365 is a Microsoft Dynamics 365 superhero who runs on pure Dynamics adrenaline. As the face of PowerObjects, Joe D365’s mission is to reveal innovative ways to use Dynamics 365 and bring the application to more businesses and organizations around the world.

PowerObjects Recommends