I had the challenge to automatic install and configure a SCOM multi-homed agent. I ran in to a couple of issues that I had to deal with – so today I am going to share my experiences regarding this with you.

First you need to copy the source files for the SCOM agent to your SCCM source files location.

The next thing you need to do is to download a copy of my PowerShell script (InstallSCOMMultiHome.ps1) created for the solution and place it in the content folder mentioned before.

Your content folder should look like below:

Now edit the variables in the InstallSCOMMultihome.ps1 script so it fits your environment. The variables you need to change are following:

#Define the SCOM Management server for the second server (Multi-home)$SCOMMgmtServer2=“OM02.corp.viamonstra.com“

#Define the management group for server 2 (Multi-home)$ManagementGroup2=“corp-viamonstra-1“

Next you need to create a SCCM package and a standard program.

When we run the program we’ll have to use a PowerShell Command to start the script. Because SCCM natively will start the x86 version of PowerShell and the script has some commands that are x64 specific we need to change the PowerShell version that SCCM will start.

So at your program command line type in the following to let SCCM start the x64 version of PowerShell (and run the script correctly):

Comments (%):

If I have multiple mgmt groups on a single server (as the pic in ths blog post shows), how would I programatically delete just one of those mgmt groups and leave the other one? Does it matter if the assignment is manual or AD? This is throwing us for a loop!!