How to Deploy the Operations Manager 2007 Database Using the Command Line
You can use the following command-line example to deploy the Operations Manager 2007 database. The account used to run MOM.msi must have administrative rights on the targeted computer. This account must also have database owner privileges on the master and msdb databases on the instance of Microsoft SQL Server that will host the database. For the list of MOM.msi custom public properties, see Operations Manager 2007 Reference.
Important
Microsoft Windows Installer public properties must be uppercase, such as PROPERTY=value. For more information about Windows Installer, see https://go.microsoft.com/fwlink/?LinkId=70004.
To deploy an Operations Manager 2007 database using the command line
Open the command window.
At the prompt, for example, type the following:
%WinDir%\System32\msiexec.exe /i <path>\MOM.msi /qn /l*v %Temp%\MOMDB_install.log ADDLOCAL=MOMDB USE_SETTINGS_FROM_AD=0 MANAGEMENT_GROUP=MG1 SQLSVR_INSTANCE=ODB1\Instance1 DB_SIZE=500 ADMIN_ROLE_GROUP=“Domain1\MOM _Admins” DATA_DIR=E:\OpsMgr2007\Data LOG_DIR=E:\OpsMgr2007\Log
The preceding command-line example does the following:
- Installs the Operations Manager 2007 database (ADDLOCAL=MOMDB).
- Gets Management Group settings from properties set on the command line (USE_SETTINGS_FROM_AD=0).
- Sets the Management Group name to MG1 (MANAGEMENT_GROUP=MG1).
- Sets the instance of SQL Server for the Operations Manager database to ODB1\Instance1 (SQLSVR_INSTANCE= ODB1\Instance1).
- Sets the initial database size to 500MB (DB_SIZE=500).
- Sets the Operations Manager Administrators role to Domain1\MOM_Admins (ADMIN_ROLE_GROUP=“Domain1\MOM _Admins”).
- Sets the Operations Manager database data file location to E:\OM2007\Data (DATA_DIR=E:\OpsMgr2007\Data).
- Sets the Operations Manager database log file location to F:\OM2007\Data (DATA_DIR=E:\OpsMgr2007\Log).
See Also
Tasks
How to Deploy the Operations Manager 2007 Database Using the Setup Wizard
Concepts
About Deploying Operations Manager 2007
About Operations Manager 2007