Creating Dynamic Groups
Something that we do on a regular basis however appears to lack enough documentation for is creating dynamic groups in. One thing in particular....
In this example we want to create a group that contains all servers that contain WDM or WPP or DEMO. So in the Dynamic Group Expression builder this is what we want it to look like
However to get here we have to choose our class (for targeting, here we are using Windows Server), then we click ADD. Notice when we choose ADD this adds an AND statement not an OR statement
So to change this to an OR statement we have to highlight the row that contains the AND group... right click it and select Switch to Or Group
Once we have switched it to an Or Group we want to add our expressions. So for every expression we want to Insert an Expression
When adding Expression values we have a lot of options...
.
One thing to note about the regular expression option is you will need to create it similar to
because there is no option to use the /i flag to make it case insensitive; so you just use the CAPS|lower
When all is said and done and we look at the XML we can see that the Windows Server portion is and Explicit AND statement and the rest of the Expressions are part of the OR statement
Hopefully this tip will help make group creation a little easier for you.
Read the complete post at http://david-stclair.spaces.live.com/Blog/cns!112A71B19678F08D!226.entry