Quantcast
Channel: Group Policy forum
Viewing all articles
Browse latest Browse all 19997

Using less than (

$
0
0

I am trying to create a GPP using client side targeting that creates a registry key only when machines that fall into a selected name range. 

i.e BAS016 through to BAS019 get a registry key created 'Bacon' everything else get 'tofu'

I can get client side targeting to create my test registry key when I use the following query with a greater than or equal to, 

SELECT name FROM Win32_ComputerSystem WHERE name >= '%[BAS]015'

However when I reverse it, when using a less than or equal to it doesn't work

SELECT name FROM Win32_ComputerSystem WHERE name <= '%[BAS]019' 

This also happens when using the straight < operator

Any help is greatly appreciated.

Regards,

Martin 


Viewing all articles
Browse latest Browse all 19997

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>