SCOM 2012 SP1/R2 Agent command line install

In this blog post I am going to cover the new command line property I found for installing the SCOM agent via command line with the SCOM SP1 Agent.

The following TechNet article covers the documented switches for installing MOMagent.msi http://technet.microsoft.com/en-us/library/cc950511.aspx these command line switches all seem to be the same as the RTM version. I found when trying to push the agent via SCCM these switches didn’t work using the updated momagent.msi for SP1.

The SCCM AppEnforce.log was returning a 1603 error when using the following command line

msiexec.exe /i MOMAgent.msi USE_SETTINGS_FROM_AD=0 MANAGEMENT_GROUP=<Management Group Name> MANAGEMENT_SERVER_DNS=<FQDN of the SCOM MS> MANAGEMENT_SERVER_AD_NAME=<FQDN of the SCOM MS> ACTIONS_USE_COMPUTER_ACCOUNT=1 USE_MANUALLY_SPECIFIED_SETTINGS=1 /qn

used the following command to troubleshoot the install so it would show errors

msiexec.exe /i MOMAgent.msi USE_SETTINGS_FROM_AD=0 MANAGEMENT_GROUP=<Management Group Name> MANAGEMENT_SERVER_DNS=<FQDN of the SCOM MS> MANAGEMENT_SERVER_AD_NAME=<FQDN of the SCOM MS> ACTIONS_USE_COMPUTER_ACCOUNT=1 USE_MANUALLY_SPECIFIED_SETTINGS=1  /l*v C:\MOMAgentinstall.log /qb

this lead to a eula error added the following to the command line “AcceptEndUserLicenseAgreement=1”

The following command line successfully installed the SCOM agent via SCCM.

msiexec.exe /i MOMAgent.msi USE_SETTINGS_FROM_AD=0 MANAGEMENT_GROUP=<Management Group Name> MANAGEMENT_SERVER_DNS=<FQDN of the SCOM MS> MANAGEMENT_SERVER_AD_NAME=<FQDN of the SCOM MS> ACTIONS_USE_COMPUTER_ACCOUNT=1 USE_MANUALLY_SPECIFIED_SETTINGS=1 AcceptEndUserLicenseAgreement=1 /l*v C:\MOMAgentinstall.log /qn

if you are using AD integrated or a domain account for your Action account please refer to the the TechNet article for the proper command line options to fit your environment just add the AcceptEndUserLicenseAgreement=1

Update for R2 agent/Microsoft monitoring Agent

msiexec.exe /i MOMAgent.msi /qn USE_SETTINGS_FROM_AD=0 USE_MANUALLY_SPECIFIED_SETTINGS=1 MANAGEMENT_GROUP=PLANK MANAGEMENT_SERVER_DNS=<Server name> MANAGEMENT_SERVER_AD_NAME=<Server name> ACTIONS_USE_COMPUTER_ACCOUNT=1  AcceptEndUserLicenseAgreement=1

Microsoft has also updated the documentation of how to install the agent via the command line you can find the article here

The Service names were renamed in the R2 version

image

The Control Panel applet was also renamed

image

The install location has also been updated

C:\Program Files\Microsoft Monitoring Agent\Agent 

Advertisements
This entry was posted in SCOM and tagged . Bookmark the permalink.

One Response to SCOM 2012 SP1/R2 Agent command line install

  1. SCOM Artist says:

    Thanks for the info. I am tired of manually deploying the agent to each new server. I want to create an automated application deployment to an “All Servers” collection I have created. This should help with my command line.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s