script query of automatic deploy rules
PowerShell scripting or WQL queries of automatic deploy rules for selection of update filtering in the SCCM Console.
For example, to filter out everything but “Feature update to windows 10 (business editions), version 1803, en-us” I must use the query shown in the attachment.
1803 OR -gb OR -consumer (1803 OR NOT gb OR NOT consumer)
Because OR is the only logical join and the ‘-‘ is a literal character and ‘-‘ means NOT I have to filter with negative logic.
A bigger issue is that when a new version comes out I must manually change the query to change the “1803” to “180x”. Using PowerShell or WQL, I could use something like the command attached.
Would also include ADRs and any other searches replacing the one used in the fist attachment.