I am trying to figure out relevance for one of the baseline which has apps in it that gets pushed out to all newly imaged machines. We want to add relevance that sets a criteria and, only those machines that meet up the relevance get the baseline completed.
One relevance is for hostnames of devices: There are three device types - Physicals, Virtuals and Field machines:
(If (exists key “HKEY_LOCAL_MACHINE\System\CNO\Deployment” whose (exists value “ImageType” whose (it = “VCN”) of it) of registry) then (Computer name starts with “H”) else False) AND (If (exists key “HKEY_LOCAL_MACHINE\System\CNO\Deployment” whose (exists value “ImageType” whose (it = “CNO”) of it) of registry) then (Computer name starts with “T” or Computer name starts with “E” or Computer name starts with “F” or Computer name starts with “Z”) else False)) AND (If (exists key “HKEY_LOCAL_MACHINE\System\CNO\Deployment” whose (exists value “ImageType” whose (it = “D4V”) of it) of registry) then (Computer name starts with “D”) else False)) AND (If (exists key “HKEY_LOCAL_MACHINE\System\CNO\Deployment” whose (exists value “ImageType” whose (it = “AGT”) of it) of registry) then (Computer name starts with “G”) else False)
Then all the machines should have:
(exists values “EncryptStatus” whose( it as string as lowercase contains “FullyEncrypted” ) of keys “HKEY_LOCAL_MACHINE\SYSTEM\CNO\Deployment” of ( x64 registries; x32 registries )))
Also:
(exists file “C:\Windows\SysWOW64\rpcnet.exe”)
When I initiate action , it adds AND in between each relevance and it doesn’t work as expected.
relevance.pdf (56.8 KB)