Hi @D D ,
I played a bit and could prepare this for you:
SELECT DisplayName,DWCreatedDateTime
FROM [OperationsManagerDW].[dbo].[vManagedEntity]
WHERE [FullName] LIKE 'Microsoft.SystemCenter.HealthService:%'
AND DWCreatedDateTime between '2022-01-01' and '2022-09-13'
this will give you all agents installed between '2022-01-01' and '2022-09-13'. You can adjust the dates according to your needs. You need to count the rows in the output.
If you want to get the count only, then you can use the "COUNT()" function with the query:
SELECT COUNT(*)
FROM [OperationsManagerDW].[dbo].[vManagedEntity]
WHERE [FullName] LIKE 'Microsoft.SystemCenter.HealthService:%'
AND DWCreatedDateTime between '2022-01-01' and '2022-09-13'
This will return the count of the agents for the given period.
I hope I was able to help you out.
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Stoyan Chalakov