in

myITforum.com

David St. Clair at myITforum.com

Creating Dynamic Groups

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

image

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

image

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

image

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

image

When adding Expression values we have a lot of options...

image image .

One thing to note about the regular expression option is you will need to create it similar to

image  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

image

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

Copyright - www.myITforum.com, Inc. - 2010 All Rights reserved.
Powered by Community Server (Commercial Edition), by Telligent Systems