so, the “Range1” and “Range2” has a same value “:Range” with same result "10.89.
.
". I want delete these two keys, which are “Range1” and “Range2”, I wrote the action below:
if {(exists key whose (value “:Range” of it as string contains "10.89.
.
") of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Ranges” of registry)}
appendfile
endif
But, the FixletDebugger got a error:“Singular expression refers to non-unique object.” so, I add “s” to “name” and “key”, the FixletDebugger got another error:“Singular expression required”.
Now, I cann’t delete these two keys, How can I do? Please help me, tks!
It’s the Christmas Holiday in the US (where the majority of Forum users live) so you’re not going to get a quick response right now.
I recommend doing some reading/studying using this Google search:
site:forum.bigfix.com “appendfile [-”
The problem that makes this a little tricky is that you need to build your appendfile lines, the ones that delete registry keys, one by one. That is, you have to have Relevance queries that return a single key when you “paste” them into your “appendfile [-” Action Script lines.
appendfile {("%0d%0a") of (names of (keys whose (value “:Range” of it as string contains "10.89.
.
") of key (“HKEY_USERS” & substring separated by “” whose (it contains “S-1-5-21”) of (names of values of key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\hivelist” of registry) whose (it contains “S-1-5-21” and it does not contain “Classes”) & “\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Ranges”) of registry))}