I’d bet the query doesn’t contain the output from operators that have been deleted, which I didn’t really even consider until just now, but seems rather obvious.
I wonder if your pre-population caused it to skip those that were in the query but were not being set to True.
You could add custom operators that are not returned by the query like this:
("[Software\BigFix\EnterpriseClient\Settings\Client\__Group___AdminBy_" & it & "]%0d%0avalue = False%0d%0aeffective date = Thu,%252001%2520Jan%25201970%252005:23:11%2520-0800") of ( "__op_375"; "__op_376"; masthead operator names of bes users whose(not master flag of it) )
I also wonder if they are sequential, if it would be sufficient to return from the query the maximum operator number then pre-populate everything from __op_100
to the max… though it seems like you have an __op_3
The max operator should be:
maxima of (it as integer) of following texts of firsts "__op_" of masthead operator names of bes users whose(not master flag of it)
This is all the operators from the current minimum to the current maximum:
("__op_" & it as string) of ( integers in ( ( minima of (it as integer) of following texts of firsts "__op_" of masthead operator names of bes users whose(not master flag of it) ) ,it) ) of maxima of (it as integer) of following texts of firsts "__op_" of masthead operator names of bes users whose(not master flag of it)
This may miss a few before the current minimum, but seems like it is one of the better options to get most of those required without definitely getting extras.
This would be it all together:
("[Software\BigFix\EnterpriseClient\Settings\Client\__Group___AdminBy_" & it & "]%0d%0avalue = False%0d%0aeffective date = Thu,%252001%2520Jan%25201970%252005:23:11%2520-0800") of ("__op_" & it as string) of ( integers in ( ( minima of (it as integer) of following texts of firsts "__op_" of masthead operator names of bes users whose(not master flag of it) ) ,it) ) of maxima of (it as integer) of following texts of firsts "__op_" of masthead operator names of bes users whose(not master flag of it)
If you know the actual minimum value, then that could be substituted:
("[Software\BigFix\EnterpriseClient\Settings\Client\__Group___AdminBy_" & it & "]%0d%0avalue = False%0d%0aeffective date = Thu,%252001%2520Jan%25201970%252005:23:11%2520-0800") of ("__op_" & it as string) of ( integers in (3,it) ) of maxima of (it as integer) of following texts of firsts "__op_" of masthead operator names of bes users whose(not master flag of it)
Also, thanks for giving this a try. I can’t say for certain that this will work, but the relevance seems like it should.
@cstoneba I made many updates above ^