Gateway and all agents behind it were deleted from Agent Managed, but servers are still in Windows Computers view (grey color). So I ran query:
select BME.FullName, DS.DiscoveryRuleID, D.DiscoveryName from typedmanagedentity TME Join BaseManagedEntity BME ON TME.BaseManagedEntityId = BME.BaseManagedEntityId JOIN DiscoverySourceToTypedManagedEntity DSTME ON TME.TypedManagedEntityID = DSTME.TypedManagedEntityID JOIN DiscoverySource DS ON DS.DiscoverySourceID = DSTME.DiscoverySourceID JOIN Discovery D ON DS.DiscoveryRuleID=D.DiscoveryID Where BME.Fullname like '%dc.gateway.net%'
Got DiscoveryName for gateway: Microsoft.SystemCenter.SCManagedComputerPropertyDiscovery
I created a group with all stale computers and made override to disable “Discover Managed Computer Properties” discovery for this group. Ran “Remove-DisabledMonitoringObject” and computers still in monitoring pane.
That was about one week ago.
The goal is I would like to re-add agents back to SCOM.
Любовь долготерпит, ...