You can find the SCOM ID of any object or group in SCOM by browsing to the object in SquaredUp and observing the URL.
- Type the group or object name in the quick find box at the top of SquaredUp, and select the matching result to navigate to the page.
Copy the SCOM ID from the page URL. The URL contains the SCOM ID as
id=<SCOM ID>, for example:
So for the URL above the SCOM ID of the Group is bcb643d0-62c8-7555-ffe0-36c1a86101a4
Get-SCOMGroup | select displayName,Id
This will list all the SCOM groups by displayname and show their SCOM IDs.
Get-SCOMMonitoringObject -DisplayName "Hong Kong" | select id
This will show the SCOM ID of the object called 'Hong Kong'. This can be used for any object (or group).
SCOM object details are available in the vManagedEntity view, so a simple query like the following will extract all the server IDs (we’re using FullName to filter to all Microsoft.Windows.Computer instances):
SELECT [ManagedEntityGuid] as ScomId ,[Path] as ScomPath ,[DisplayName] as ScomName FROM [OperationsManagerDW].[dbo].[vManagedEntity] WHERE [FullName] LIKE 'Microsoft.Windows.Computer:%'
The SCOM IDs of objects can be found in a number of different ways. Tao Yang recently blogged about this, so his blog is a great starting point (thanks Tao!):