This Script was created to Install Operation Manager 2012R2 “Management Server, Web and Operations Consoles”.

Simply edit the PS1 file based on the comments in the file to match your environment and you will have a simple way of deploying operation Manager 2012.

Be sure to take note of the comments in the PS1 file to insert your input according to your environment.

PowerShell
Edit|Remove
## This Script is according to my lab, if your case you must change input of following Values 
## Filepath must be path of SCOM Media 
## "Install path" put path of SCOM according to version of SCOM 
## ManagementGroupName: Name of Management Group 
## SqlServerInstance: <server\instance> 
## DWDatabaseName: Database Name 
## /UseLocalSystemActionAccount mean use local system in installation 
## /DatareaderUser: write Datareader user which you will use it. 
## Note: /DatareaderPassword: write password direct without any quotes 
Start-Process -FilePath D:\setup.exe -ArgumentList '/install /InstallPath:"C:\Program Files\Microsoft System Center 2012 R2\Operations Manager" /components:OMServer,OMConsole,OMWebConsole /ManagementGroupName:OMOpsMgr /SqlServerInstance:OM\MSSQLSERVER /DatabaseName:OperationsManager /DWSqlServerInstance:OM\MSSQLSERVER /DWDatabaseName:OperationsManagerDW /UseLocalSystemActionAccount /UseLocalSystemDASAccount /DatareaderUser:lab\OMRDW /DatareaderPassword:P@ssw0rd /DataWriterUser:lab\OMRDW /DataWriterPassword:P@ssw0rd /WebSiteName:Defaultwebsite /WebConsoleAuthorizationMode: Mixed /SendODRReports: 0 /EnableErrorReporting:Never /SendCEIPReports:0 /UseMicrosoftUpdate:0 /AcceptEndUserLicenseAgreement:1 /silent'

You can use this script in following steps:    

  1. Download the script and copy it to your Server.
  2. Open it using PowerShell
  3. Scroll down to the end of the script file, and then add Database name, Credentials and parameter to install SCOM.
  4. Save the file and then run the script on the computer.