I have a custom scan based upon a certain registry key being present. I'm not a programmer so how can I tweek my query to give me a list of machines that do not have the registry key?
Select Top 1000000 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetUnique,
tblAssets.Domain,
tblRegistry.Regkey,
tblRegistry.Valuename,
tblRegistry.Value,
tblRegistry.Lastchanged
From tblAssets
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Inner Join tblRegistry On tblAssets.AssetID = tblRegistry.AssetID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Where tblRegistry.Regkey Like '%SOFTWARE\PGP Corporation\Common' And
tblRegistry.Valuename = 'ProductVersion' And tblAssetCustom.State = 1
Order By tblAssets.AssetUnique