Hi @Vivian Carol ,
To prevent the inactive machine in the result, we could create the collection query for active clients, and then from this collection, and query that grabs machines with certain Office products.
We could put it in the query directly.
The query is :
SELECT
SMS_R_SYSTEM.ResourceID,
SMS_R_SYSTEM.ResourceType,
SMS_R_SYSTEM.Name,
SMS_R_SYSTEM.SMSUniqueIdentifier,
SMS_R_SYSTEM.ResourceDomainORWorkgroup,
SMS_R_SYSTEM.Client
FROM
SMS_R_System
INNER JOIN
SMS_G_System_CH_ClientSummary on SMS_G_System_CH_ClientSummary.ResourceId = SMS_R_System.ResourceId
WHERE
SMS_G_System_CH_ClientSummary.ClientActiveStatus = 1
And here is the article about creating collection based on Installed Application:
https://www.anoopcnair.com/sccm-collection-based-on-installed-application/
Note: Non-Microsoft link, just for the reference.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.