Issue with removing an OpsMgr 2012 R2 Gateway Server

Kanak Paul 36 Reputation points
2022-07-06T03:57:50.747+00:00

I am trying to remove an OpsMgr 2012 R2 Gateway Server(no agents pointed to the gateway) with below command but after executing the command it just stuck here(refer below screenshot) and doesn't provide any feedback. Please let me know if the gateway got de-registered or not? If not what need to be done here?

note : I've copied the two files: Microsoft.EnterpriseManagement.GatewayApprovalTool.exe AND Microsoft.EnterpriseManagement.GatewayApprovalTool.exe.config to "E:\program files\System Center Operations Manager 2012 R2\server" path and executing the command from a management server, also verified the version of GatewayApprovalTool.exe

command:

Microsoft.EnterpriseManagement.GatewayApprovalTool.exe /ManagementServerName=<RealmanagementserverFQDN> /GatewayName=<DummyGatewayFQDN> /Action=Delete

here is the screenshot-

![217930-image.png]1

System Center Operations Manager
System Center Operations Manager
A family of System Center products that provide infrastructure monitoring, help ensure the predictable performance and availability of vital applications, and offer comprehensive monitoring for datacenters and cloud, both private and public.
1,603 questions
0 comments No comments
{count} votes

Accepted answer
  1. SChalakov 10,576 Reputation points MVP Volunteer Moderator
    2022-07-06T08:25:38.233+00:00

    Hi @Kanak Paul ,

    This post sounds like it:

    SCOM Gatewayapprovaltool.exe just hangs with no error
    https://www.obvus.be/scom-gatewayapprovaltool-exe-just-hangs-with-no-error/

    did you uninstall the Gateway Server role from the server itself? If not, please do so. Also if the above post does not help you, please follow all the steps outlined in the following article:

    How to remove an OpsMgr 2012 Gateway Server that is associated with a site
    https://techcommunity.microsoft.com/t5/system-center-blog/how-to-remove-an-opsmgr-2012-gateway-server-that-is-associated/ba-p/348695

    It explains what to do if oyu want to remove a Gateway and even if yours might not be assoociated with an AD site, all the steps are still applicable.
    Also, please review this thread on the Microsoft Social Technet, it contains some other very useful steps.

    Unable to uninstall or remove SCOM Gateway Server
    https://social.technet.microsoft.com/Forums/lync/en-US/13143828-81d3-4d77-9a95-f34239cc31f9/unable-to-uninstall-or-remove-scom-gateway-server?forum=operationsmanagergeneral

    Important: The link contains a reference to a SQL query. Please do not do that without the help of the Ms support, otherwise your SCOM might become "not suppported", because of the DB modifications.

    So, to recap:

    • Uninstalll the role from the server
    • Try running the tool as SCOM admin again
    • Do the cleanup (SQL) only as a last resort and by the supervision of Microsoft.

    I hope i could help.

    ----------

    (If the reply was helpful please don't forget to upvote or accept as answer, thank you)
    Regards,
    Stoyan


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.