Hello,
I need some help.
I would like to create a report which shows me every client who has the regkey 'HKEY_LOCAL_MACHINE\SOFTWARE\MATRIX42' and not the regkey 'HKEY_LOCAL_MACHINE\SOFTWARE\MATRIX42\DHCPOptions'
I have created some scipts but nothing works for me.
Here is my start, I can check for one key which isn't set but I don't know how to implement the 2nd key which is needed.
Select Top 100 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.Username,
tblAssets.Userdomain,
tblAssets.IPAddress,
tblAssets.Firstseen,
tblAssets.Lastseen,
tblAssets.Lasttried
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Where tblAssets.AssetID Not In (Select Top 100 tblRegistry.AssetID
From tblRegistry
Where tblRegistry.Regkey = 'HKEY_LOCAL_MACHINE\SOFTWARE\MATRIX42\DHCPOptions')
And tblAssetCustom.State = 1
Order By tblAssets.AssetName
The regkeys are added to the Registry Scanning.
Best regards
Julien