SCOM 2012 R2 Gateway installation

We are going to install the first Gateway on GW001.

Gateway approval

In order to make the SCOM servers “aware” of the arrival of a new gateway in the environment we need to do the following steps:

Log on MS002 with a SCOM administrator account, open a command prompt with elevated privileges and run the command above from the SCOM installation directory:

Microsoft.EnterpriseManagement.GatewayApprovalTool.exe /ManagementServerName=MS002.domain.xxxx /GatewayName=GW001 /Action=Create

Installation steps

Log on with an administrator account and launch Setup.exe from the SCOM 2012 R2 sources. Click on Install Gateway Management Server

Leave the Welcome screen.

Click I agree.

Leave the default parameters

Enter the name of the Management Group,SCOM2K12-MG and enter the name of the Management Server (primary) the Gateway will be reporting to,

Select Local System.

Validate the installation.

Wait until the installation is complete

Once installation is complete, click finished.

Certificates configuration

At this time the Gateway is able to communicate with its Management Server but no agents will be able to communicate to it until certificates are configured. Please refer to This link.

Configure the gateway failover

Log on MS002 with a SCOM administrator account, launch the SCOM Command Shell and run the following commands. Wait several minutes until the changes take effect. $primaryMS = Get-SCOMManagementServer | where {$_.Name –eq ‘MS002.Domain.xxxx.local’}

$failoverMS = Get-SCOMManagementServer | where {$_.Name –eq ‘’}

$gatewayMS = Get-SCOMManagementServer | where {$_.Name –eq ‘GW001.Domain.xxxx’}

Set-SCOMParentManagementServer -GatewayServer: $gatewayMS -PrimaryServer: $primaryMS

Set-SCOMParentManagementServer -GatewayServer: $gatewayMS -FailoverServer: $failoverMS

In order to be sure the Gateway is configured with a primary and a failover management server, Run the PowerShell. $GWs = Get-SCOMManagementServer | where {$_.IsGateway -eq $true}

$GWs | sort | foreach {

Write-Host “”;

“Gateway MS :: ” + $_.Name;

“–Primary MS :: ” + ($_.GetPrimaryManagementServer()).ComputerName;

$failoverServers = $_.getFailoverManagementServers();

foreach ($managementServer in $failoverServers) {

“–Failover MS :: ” + ($managementServer.ComputerName);



Write-Host “”;

Leave a Reply Please

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s