OpsMgr 2007: How to configure a gateway to communicate with a different management server without moving agents

TipHere’s a neat piece of documentation I came across today that was written by one of our top Support Escalation Engineers, Ganesh Babu gnana Sundaram.  If you ever need to reconfigure a Gateway server to communicate with a different Management server then this one’s for you:


You may find yourself in a situation where a Gateway server is configured to communicate with the Root
Management server, or some other Management server, but due to reasons such as load you may need to configure it to communicate with a different management server.

To do this, first run the following commands from a Command Shell on the Root Management server (or whichever server the Gateway is correctly configured to communicate with):

$MS = Get-Managementserver | where {$_.Name -eq ‘<Name_of_Management_server>’}
$GW = Get-Managementserver | where {$_.Name -eq ‘<Name_of_Gateway_server>’}
Set-Managementserver -GatewayManagementserver:$GW -PrimaryManagementServer:$MS

After running the above command, complete the following on the Gateway server:

1.Open the Registry editor on the Gateway server and navigate to this location:

HKLM\Software\Microsoft\Microsoft Operations Manager\3.0\Server Management group\<name>\Parent Health Services\0

Change the following Registry keys to point to the New management server.


2.Stop the Healthservice on the Gateway server and Rename the “Health Service State” folder under %Program Files%\System Center Operations Manager 2007\ on the Gateway server to “Health Service State Old” and then start the Healthservice. After few minutes , the Gateway server will resume communication with the New management server.

Note: You will see an event ID 20020 logged on the New Management server when the gateway starts communicating with it.


Thanks Ganesh!

J.C. Hornbeck | Manageability Knowledge Engineer

Comments (7)
  1. Anonymous says:

    “ Here’s a neat piece of documentation I came across today that was written by one of our top Support

  2. Anonymous says:

    “ Here’s a neat piece of documentation I came across today that was written by one of our top Support

  3. Anonymous says:

    Excellent Post!

    Just what I was looking for. Thanks for sharing.

  4. JS says:

    This is good information.  What if you need to move Management Groups?

  5. MAM2CAT says:

    do you need to run momcertimport again on the management servers?

  6. john2r says:

    Many Thanks!!!

  7. show box says:

    Thanks for the great info. I really loved this. I would like to apprentice at the same time as you amend your web site, how could i subscribe for a blog site?
    For more info on showbox please refer below sites:
    Latest version of Showbox App download for all android smart phones and tablets.
    http://movieboxappdownloads.com/ – It’s just 2 MB file you can easily get it on your android device without much trouble. Showbox app was well designed application for android to watch movies and TV shows, Cartoons and many more such things on your smartphone.
    For showbox on iOS (iPhone/iPad), please read below articles:
    Showbox for PC articles:
    There are countless for PC clients as it is essentially easy to understand, simple to introduce, gives continuous administration, effectively reasonable. it is accessible at completely free of expense i.e., there will be no establishment charges and after establishment
    it doesn’t charge cash for watching films and recordings.
    http://www.showboxforipad.org/showbox-apk/ Not simply watching, it likewise offers alternative to download recordings and motion pictures. The accompanying are the strides that are to be taken after to introduce Showbox application on Android. The above
    all else thing to be done is, go to the Security Settings on your Android telephone, Scroll down and tap on ‘Obscure sources’.
    Movie Box, an esteemed movies application in which you can find stacks of programs and films. The guide is given here to download Movie Box app to Android and to Apple iOS 9.0.2, iOS 8.4/8.3 and also for the lower versions without Jailbreak.
    Please do login to Showbox application with the help of Ymail. You can login in Ymail from here –
    Sign Up & Do registration for latest movies on Showbox application

Comments are closed.

Skip to main content