Hi,
I got an app that is hidden so it won't show up in Add/Remove Programs. I created a installed software report to use with my managed software delivery policy and that has worked good. What I am trying to do is reverse the query to show me computers that don't have this software.
SELECT DISTINCT
[vri1_Computer].[Guid] AS [_ResourceGuid]
FROM
[vRM_Computer_Item] AS [vri1_Computer]
INNER JOIN [Inv_InstalledSoftware] AS [dca2_InstalledSoftware]
ON [vri1_Computer].[Guid] = [dca2_InstalledSoftware].[_ResourceGuid]
INNER JOIN [vComputerResource] AS [ajs3_vComputerResource]
ON [vri1_Computer].[Guid] = [ajs3_vComputerResource].[Guid]
WHERE
(
(
([ajs3_vComputerResource].[IsManaged] = 1) AND _ResourceGuid IN (SELECT _ResourceGuid FROM Inv_InstalledSoftware WHERE InstallFlag = 0 AND (_SoftwareComponentGuid = '5933bf78-db6d-4455-bfe4-96ffabedbdc8')))
)
I have tried changing ResourceGuid IN to ResourceGuid NOT IN as well as changing the InstallFlag = 1 to 0 and the results just don't appear right. Any ideas?