How to Configure Commerce Server Using the Command Line

Microsoft Commerce Server 2009 R2 supports unattended configuration of the system so that you can configure Commerce Server 2009 R2 without requiring interactive user input.

To perform an unattended configuration of Commerce Server 2009 R2, you use the CSConfig.exe command with command-line options. If you want to use pre-defined configuration values for your unattended installation you must run the CSConfig.exe command once, to create the XML configuration file. 

Note

The XML configuration file does not store passwords associated with the service accounts for the Direct Mailer or Staging Service components. You must edit the configuration file to include the passwords if you want to configure these components in silent mode.

The CSConfig utility only configures Commerce Server 2009 R2 components. If you want to deploy SharePoint Commerce Services to use with your Web application, or want to deploy the Solution Storefront, you must use the SharePointCommerceServicesConfiguration utility.

To perform an unattended configuration of Commerce Server 2009 R2

  1. Open a Command Prompt window and navigate to the root Commerce Server 2009 R2 installation directory.

  2. On the command line, type the following and then press ENTER:

    CSConfig.exe /<option> <parameters> 
    

    See the following table for information about each option and its associated parameters. For example, a statement that uses the CSConfig.xml configuration file to configure all Commerce Server 2009 R2 features is as follows:

    CSConfig.exe /f /l %systemdrive%\install.log /s CSConfig.xml
    

    Option

    Description

    /f

    Forces the configuration of all features, even if they are already configured.

    /l <logfile>

    Specifies a custom log file. By default, a log file that has a timestamp-based name is created in the Temp directory.

    /r <feature list>

    Applies the configuration to a comma-separated list of features. You can combine this option with /u. When you specify a feature, the CSConfig.exe utility launches the Configuration Wizard and opens the feature page (after the Welcome page).

    The following are valid values for the feature list:

    • Feature.MS.CS.Server

    • Feature.MS.CS.DirectMailer

    • Feature.MS.CS.CsStaging

    /s <configuration XML file>

    Performs passive configuration (only the progress bar is displayed) of Commerce Server 2009 R2 by using the information provided in a configuration XML file. This file is created when you first use the Commerce Server 2009 R2 Configuration Wizard and click Save on the Summary page.

    /i <configuration XML file>

    Performs silent configuration of Commerce Server 2009 R2 by using the information provided in a configuration XML file. This file is created when you first use the Commerce Server 2009 R2 Configuration Wizard and click Save on the Summary page.

    /u

    Performs an unattended removal of the configuration.

See Also

Other Resources

Configuring Commerce Server 2009 R2