Windows Agent Install MSI Use Cases and Commands

Windows Agent Install MSI Use Cases and Commands

  • Comments 1
  • Likes

Recently, I have had a bunch for requests for more detail on installing a Windows Agent or upgrading a Agent from the command line.  So here you go!! 

Use Case

Command

Fresh Install and set specific action account

msiexec.exe /i \\path\Directory\MOMAgent.msi /qn /l*v %temp%\MOMAgentinstall.log  USE_SETTINGS_FROM_AD=0 MANAGEMENT_GROUP=<MG_Name> MANAGEMENT_SERVER_DNS=<MSDNSName> ACTIONS_USE_COMPUTER_ACCOUNT=0 ACTIONSUSER=<AccountUser> ACTIONSDOMAIN=<AccountDomain> ACTIONSPASSWORD=<AccountPassword> USE_MANUALLY_SPECIFIED_SETTINGS=1 SET_ACTIONS_ACCOUNT=1

Fresh Install and use local system as action account

msiexec.exe /i \\path\Directory\MOMAgent.msi /qn /l*v %temp%\MOMAgentinstall.log  USE_SETTINGS_FROM_AD=0 MANAGEMENT_GROUP=<MG_Name> MANAGEMENT_SERVER_DNS=<MSDNSName> ACTIONS_USE_COMPUTER_ACCOUNT=1 USE_MANUALLY_SPECIFIED_SETTINGS=1 SET_ACTIONS_ACCOUNT=1

Fresh Install with AD Integration and set specific action account

msiexec /i \\path\Directory\MOMAgent.msi  /qn /l*v %temp%mominst.NoGroupSpecified.log USE_SETTINGS_FROM_AD=1 USE_MANUALLY_SPECIFIED_SETTINGS=0 ACTIONS_USE_COMPUTER_ACCOUNT=0 ACTIONSUSER=<AccountUser> ACTIONSDOMAIN=<AccountDomain> ACTIONSPASSWORD=<AccountPassword>  SET_ACTIONS_ACCOUNT=1

Fresh Install with AD Integration and use local system as action account

msiexec /i \\path\Directory\MOMAgent.msi  /qn /l*v %temp%\ mominst.NoGroupSpecified.log USE_SETTINGS_FROM_AD=1 ACTIONS_USE_COMPUTER_ACCOUNT=1 USE_MANUALLY_SPECIFIED_SETTINGS=0 SET_ACTIONS_ACCOUNT=1

Upgrade from SP1

msiexec /i \\path\Directory\MOMAgent.msi SET_ACTIONS_ACCOUNT=0 /qn /l*v %temp%\MOMAgentUpgrade.log

Upgrade from R2 Beta

msiexec /i \\path\Directory\MOMAgent.msi SET_ACTIONS_ACCOUNT=0 /qn /l*v %temp%\MOMAgentUpgrade.log

Upgrade from R2 RC

msiexec /i \\path\Directory\MOMAgent.msi SET_ACTIONS_ACCOUNT=0 /qn /l*v %temp%\MOMAgentUpgrade.log

Change Management server name

MsiExec.exe /i \\path\Directory\MOMAgent.msi /norestart /qn /l*v %temp%\MOMAgentReinstall.log MANAGEMENT_GROUP= <SameManagementGroupMANAGEMENT_GROUP_OPERATION=ModifyConfigGroup MANAGEMENT_SERVER_DNS=<NewManagementServerNameREINSTALL=ALL

Add new MG

MsiExec.exe /i \\path\Directory\MOMAgent.msi /norestart /qn /l*v %temp%\MOMAgentAdd.log MANAGEMENT_GROUP=<NewManagementGroup> MANAGEMENT_GROUP_OPERATION=AddConfigGroup MANAGEMENT_SERVER_DNS=<NewManagementServerName> REINSTALL=ALL
Note: If fresh install is already AD enabled, then re-homing configuration is set by AD

Remove old MG

MsiExec.exe /i \\path\Directory\MOMAgent.msi  /norestart /qn /l*v %temp%\MOMRemove.log MANAGEMENT_GROUP=<OldManagementGroup> MANAGEMENT_GROUP_OPERATION=RemoveConfigGroup MANAGEMENT_SERVER_DNS=<OldManagementServerName> REINSTALL=ALL

Note: If this is the last MG assigned to this agent the agent will also be uninstalled.
Note: If fresh install is already AD enabled, then re-homing configuration is set by AD

Re-Home (remove old MG\MS, redirect to new MG/MS)

Step 1: Add new management group \ Management server
MsiExec.exe /i \\path\Directory\MOMAgent.msi /norestart /qn /l*v %temp%\MOMAgentAdd.log MANAGEMENT_GROUP=<NewManagementGroup> MANAGEMENT_GROUP_OPERATION=AddConfigGroup MANAGEMENT_SERVER_DNS=<NewManagementServerName> REINSTALL=ALL
Step 2: Remove old management group \ management server
MsiExec.exe /i \\path\Directory\MOMAgent.msi  /norestart /qn /l*v %temp%\MOMRemove.log MANAGEMENT_GROUP=<OldManagementGroup> MANAGEMENT_GROUP_OPERATION=RemoveConfigGroup MANAGEMENT_SERVER_DNS=<OldManagementServerName> REINSTALL=ALL

Note: Make sure to add the new management group first before removing the old one.  If you remove the old management group first and it’s the last management group assigned to the agent the agent will be uninstalled.
Note: If fresh install is already AD enabled, then re-homing configuration is set by AD

USE_SETTINGS_FROM_AD=0

Indicates that management group settings properties will be set on the command line.

MANAGEMENT_GROUP=MG1

Sets the management group the computer will be managed by to MG1.

MANAGEMENT_SERVER_DNS=MS1.Domain1.net

Sets the management server fully qualified domain name (FQDN) to MS1.Domain1.net (). To use a gateway server, enter the gateway server FQDN as MANAGEMENT_SERVER_DNS.

clip_image001[1]

Important

If the computer's DNS and Active Directory names differ, the MANAGEMENT_SERVER_AD_NAME property also needs to be set to the fully qualified Active Directory Domain Services name.

USE_MANUALLY_SPECIFIED_SETTINGS=1

Indicates that management group settings properties will be set on the command line.

SET_ACTIONS_ACCOUNT=1

Indicates that the default action account will be set on the command line.

SECURE_PORT

Sets the health service port number.

ACTIONS_USE_COMPUTER_ACCOUNT=0

Sets the Agent Action account to a specified user account, instead of to Local System.

ACTIONSUSER=AgentAction

Sets the Agent Action account to AgentAction.

ACTIONSDOMAIN= Domain1

Sets the Agent Action account domain to Domain1.

ACTIONSPASSWORD= Password#2007

Sets the Agent Action account password to Password#2007.

Note: Order of parameters does not matter. 

Rob Kuehfus | System Center Operations Manager | Setup and Deployment Program Manager

This is supplied "as -is" with no support. In addition, my thoughts and opinions often change, and as a weblog is intended to provide a semi-permanent point in time snapshot you should not consider out of date posts to reflect my current thoughts and opinions.

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment