TechNet
Table of contents
TOC
Collapse the table of content
Expand the table of content

Install Service Management Automation from a Command Prompt window

Brian Wren|Last Updated: 7/1/2016
|
5 Contributors

Applies To: Windows Azure Pack for Windows Server, System Center 2012 R2 Orchestrator

You can install the features of Service Management Automation by using commands in the Command Prompt window to guide the Windows Installer program for an unattended install.

Windows Installer files

Your installation media contains Windows Installer files for each Service Management Automation of the following features:

  • PowerShell module: PowershellModuleInstaller.msi

  • Web service: WebServiceInstaller.msi

  • Runbook worker: WorkerInstaller.msi

NOTE

The installation options must be entered at a command prompt. An answer file is not supported.

PowerShell module installation options

The Service Management Automation PowerShell module is a required prerequisite of the Service Management Automation web service, so you must install the Service Management Automation PowerShell module before you deploy the Service Management Automation web service. The PowerShell module installer takes no parameters. For example, you could use the following command:

msiexec.exe /i PowershellModuleInstaller.msi

Web service installation options

The following variables can be specified at a command prompt to override default behaviors.

Installation itemCommand line switchValid values
IIS application poolAPPOOLACCOUNTString
IIS application poolAPPOOLPASSWORDString
IIS application poolADMINGROUPMEMBERSString (a comma-separated list of users to add to the IIS Administrators group)
SQL Server databaseCREATEDATABASE"Yes" or "No" (the default value is "No")
SQL Server databaseDATABASEAUTHENTICATIONSQL, Windows (the default value is Windows). If DATABASEAUTHENTICATION = SQL, you must also specify SQLUSER and SQLPASSWORD
SQL Server databaseSQLUSERString
SQL Server databaseSQLPASSWORDString
SQL Server databaseSQLSERVERIn the format "Server name, port number." (The default values are "localhost, 1433." Supply a port number of 0 to specify a dynamic port.)
SQL Server databaseSQLINSTANCEString (optional server instance name)
SQL Server databaseSQLDATABASEString (the default database name value is SMA)
IIS web serviceSITENAMEString (the default value is "SMA")
IIS web serviceWEBSERVICEPORTInteger (the default value is "9090")
IIS web serviceINSTALLFOLDERString (the default value is c:\inetpub\Service Management Automation)
IIS web serviceUSESSL"Yes" or "No" (the default value is "Yes")
IIS web serviceSPECIFYCERTIFICATE"Yes" or "No" (the default value is "No"). A certificate is automatically created if you specify "No." If you select "Yes," also provide CERTIFICATESERIAL.
IIS web serviceCERTIFICATESERIALSerial number of an existing certificate in concatenated hexadecimal format and with no spaces between digits, for example: "45C324C02318F48D4A9C4FC832B2CDCC"
Event tracing (ETW)ETWMANIFEST"Yes" or "No" (the default value is "Yes")
Software Quality Metrics (SQM) for Customer Experience Improvement Program (CEIP) reportingSENDCEIPREPORTS"Yes" or "No" (the default value is "No")
Automatic Microsoft UpdateMSUPDATE"Yes" (opt-in) or "No" (no change; this is the default value)
Product keyPRODUCTKEYString

If logging is desired, use the Msiexec.exe command and specify the log path. For example, you could use the following command (be sure to use the name of your SQL Server instance).

msiexec.exe /i WebServiceInstaller.msi /L*v C:\Andreas\WebServiceInstaller.log CREATEDATABASE="Yes" SQLSERVER="localhost" DATABASEAUTHENTICATION="Windows" SQLDATABASE="SMA123"

Runbook worker installation options

A runbook worker cannot be installed on the same computer as another runbook worker. Also, you must install the runbook worker on a computer that has access to the same SQL Server instance that the Service Management Automation web service is using.

The following variables can be specified at a command prompt to override default behaviors.

Installation itemCommand line switchValid values
Windows serviceSERVICEACCOUNTString
Windows serviceSERVICEPASSWORDString
SQL Server databaseCREATEDATABASE"Yes" or "No" (the default value is "No")
SQL Server databaseDATABASEAUTHENTICATIONSQL Server or Windows (the default value is Windows)
SQL Server databaseSQLUSERString
SQL Server databaseSQLPASSWORDString
SQL Server databaseSQLSERVERIn the format "Server name, port number" (The default values are "localhost, 1433." Supply a port number of 0 to specify a dynamic port.)
SQL Server databaseSQLINSTANCEString (optional server instance name)
SQL Server databaseSQLDATABASEString (the default database name value is SMA)
File install locationINSTALLFOLDERString (the default value is C:\Program Files\Microsoft System Center 2012 R2\Service Management Automation)
Event tracing (ETW)ETWMANIFEST"Yes" or "No" (the default value is "Yes")
Software Quality Metrics (SQM) for Customer Experience Improvement Program (CEIP) reportingSENDCEIPREPORTS"Yes" or "No" (the default value is "No")
Automatic Microsoft UpdateMSUPDATE"Yes" (opt-in) or "No" (no change; this is the default value)
Product keyPRODUCTKEYString

If logging is desired, use the Msiexec.exe command and specify the log path. For example, you could use the following command (be sure to use the name of your SQL Server instance).

msiexec.exe /i WorkerInstaller.msi /L*v C:\Andreas\WorkerInstaller.log CREATEDATABASE="Yes" SQLSERVER="localhost" DATABASEAUTHENTICATION="Windows" SQLDATABASE="SMA123"
NOTE

If you install additional runbook workers, you must run the Windows PowerShell cmdlet New-SmaRunbookWorkerDeployment to properly configure the runbook worker.

  1. Stop the Runbook server service (RunbookService.exe) on each computer on which a runbook worker is installed.
  2. Run the following Windows PowerShell command:

    New-SmaRunbookWorkerDeployment -<_computername5c_> "<_webserviceendpoint5c_>

  3. Restart the Runbook server service on each computer on which a runbook worker is installed.

See also

Deploy Service Management Automation

© 2016 Microsoft