Install from the Command Line

To install the .NET Agent from the command line:

  1. Download the .NET Agent MSI Installer Package from the Splunk AppDynamics Download Center.
  2. Launch an elevated command prompt with full administrator privileges. See Start a Command Prompt as an Administrator.
    Note: Logging on to Windows as a member of the Administrators group does not grant sufficient permissions to run the installer.
  3. Stop IIS and, if you are upgrading, stop instrumented Windows services and Standalone applications.
  4. Run this command to install the agent with encrypted credentials. See command line options for descriptions.
    msiexec /i <path_to_MSI_installer_package> /l log.txt /q AD_SETUPFILE=<path_to_setup_configuration_file> AD_SECURED_CREDENTIALS=true AD_CONTROLLER_ACCOUNT_NAME=<SaaS or multi-tenant account> AD_CONTROLLER_ACCOUNT_ACCESS_KEY=<access key> AD_PROXY_USERNAME=<proxy user name> AD_PROXY_PASSWORD=<proxy password>

    For example:

    msiexec /i "%USERPROFILE%\Downloads\dotNetAgentSetup.msi" /l log.txt /q AD_SETUPFILE="%USERPROFILE%\Documents\SetupConfig.xml" AD_SECURED_CREDENTIALS=true AD_CONTROLLER_ACCOUNT_NAME=MyAppDynamicsAccount AD_CONTROLLER_ACCOUNT_ACCESS_KEY=changeme AD_PROXY_USERNAME=MyProxyUser AD_PROXY_PASSWORD=ProxyPass

    The MSI installer package installs the .NET Agent and encrypts the credentials and writes them to the Windows Credential Store. It adds the Controller secure attribute to the Controller element in the config.xml file and sets the value to true:

    <controller host="mycontroller.appdyanmics.com" port="443" ssl="true" secure="true">
  5. Start IIS. Restart or start instrumented Windows services and standalone applications.