Hello,
I am working on trying to get an update out but need to make sure the pre-req is installed first, but WSUS/SUP doesn't validate the applicability of the update so the pre-req doesn't install, which causes a lot of other issues. So, as to not be super specific about the updates being applied I am going to use 2 random ones that really have nothing to do with each other to explain.
Collection 1 (Pre-Req): Install KB2737954
Collection 2 : Install KB2798162
Collection 1 consists of All Systems, Collection 2 Consists of systems with KB2737954 installed and also limited to Collection 1. This is the query I am using, which isn't returning anything:
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_INSTALLED_SOFTWARE on SMS_G_System_INSTALLED_SOFTWARE.ResourceId = SMS_R_System.ResourceId where SMS_G_System_INSTALLED_SOFTWARE.ARPDisplayName like "%KB2737954%
This is the "like" sql query of it, which returns 9 machines.
SELECT gcs.Name0, garp.DisplayName0 FROM v_GS_COMPUTER_SYSTEM gcs JOIN v_GS_ADD_REMOVE_PROGRAMS garp ON gcs.ResourceID = garp.ResourceID WHERE garp.DisplayName0 LIKE '%KB2737954%'
Could someone help me convert this to WQL?