Install Prerequisites for SCOM 2012 with PowerShell

For the past 4 days I’ve been diving myself into System Center 2012 Operations Manager. I had the opportunity to participate in a course held at CornerStone here in Stockholm. During my first day I learned how to install SCOM 2012 and it’s prerequisites. During the day I had some extra time to quickly ease up the prerequisite installation part by writing a short PowerShell script, and I figured that I’d share it here on the blog.

Running the script

Basically you’ll run this on either your ManagementWeb Console or Operations Console server to-be, perhaps you want to install everything on a single box. The script handles that too. It’s important to note that the script will only install the prerequisites required for SCOM 2012 SP1 running on Windows Server 2012. When the script is done installing all prerequisites, it will then restart.
First you have to save the script below to a file, e.g. InstallSCOMPrereq.ps1. Then open a PowerShell prompt and browse your way to where you stored the file. Type the following:

To install prerequisites for a Management Server:

To install prerequisites for an Operations Console:

 To install prerequisites for a Web Console:

 To install prerequisites for all SCOM roles:

24_1

The script

 

 

m4s0n501
Posted in OpsMgr, OpsMgr 2012, PowerShell
5 comments on “Install Prerequisites for SCOM 2012 with PowerShell
  1. DRAKUN says:

    Hi ,
    j’ai ce message d’erreur lorsque je fini d’installer suivant votre procédure,

    pouvez vous m’aider à régler ce problème svp
    Date : 08/11/2013 17:51:51
    Application : Operations Manager
    Version de l’application : 7.0.9538.0
    Gravité : Erreur
    Message :

    Microsoft.EnterpriseManagement.Common.LocationObjectNotFoundException: The pool managing the instance is not available or the location monitoring object cannot be found.
    à Microsoft.EnterpriseManagement.Common.Internal.ServiceProxy.HandleFault(String methodName, Message message)
    à Microsoft.EnterpriseManagement.Common.Internal.AdministrationServiceProxy.LaunchDiscovery(Guid batchId, IList1 jobDefinitions)
    à Microsoft.EnterpriseManagement.Administration.ManagementServer.BeginExecuteWindowsDiscovery(IList
    1 discoveryConfigurations, AsyncCallback callback, Object state)
    à Microsoft.EnterpriseManagement.Mom.Internal.UI.Administration.DiscoveryProgress.c__DisplayClass7.b__3(Object , ConsoleJobEventArgs )
    à Microsoft.EnterpriseManagement.Mom.Internal.UI.Console.ConsoleJobExceptionHandler.ExecuteJob(IComponent component, EventHandler`1 job, Object sender, ConsoleJobEventArgs args)

  2. Joel says:

    Perharps do you have scripts for SCOM 2012 R2/Windows 2012 R2?

    Thanks.

    • Nickolaj Nickolaj says:

      Hi Joel,

      Unfortunately not, I’ve not updated the OpsMgr 2012 script I created a while back. As for now I don’t have any plans on doing that either.

      Regards,
      Nickolaj

  3. Shakti Ranjan says:

    Hi Nickolaj,

    Firstly I tried with . \InstallSCOMPrereq.Ps1 -Role OperationsConsole
    but Powershell does not recognize it.

    When I running above script(On Azure VM).I am getting

    PS C:\> D:\script\InstallSCOMPrereq.ps1
    cmdlet Untitled1.ps1 at command pipeline position 1
    Supply values for the following parameters:
    Role:

    And when I putting any value in it my system getting restart.
    Please help me out.

    Regards
    Shakti Ranjan

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

Link to my Contact
Recommend this page!
Link to my Linkedin Page
Link to my Rss Page
Link to my Twitter Page
Author
Last Tweets