Office 365 Client management reports that we have several different versions of Office 365 in our environment I am trying to create collections for each version of Office 365 client. So we can identify them by computer name and location. However I have been to create good query to get information. All I can find online is the how to create collections based on the x86 and x64 bit.
Below is my query can anyone help me create separate collections for each versions of Office 365
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_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceId = SMS_R_System.ResourceId inner join SMS_G_System_ADD_REMOVE_PROGRAMS_64 on SMS_G_System_ADD_REMOVE_PROGRAMS_64.ResourceId = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.ProdID = "{00202-52651-43585-AA633}" and SMS_G_System_ADD_REMOVE_PROGRAMS_64.ProdID = "{00202-52651-43585-AA633}"