Easiest way to set GPO's Security Filtering to all computers named LABxxx

I have a GPO that I want to restrict to only computers with names starting with "LAB".  There's 30 LAB PCs at this school, so I could use the GPO's Security Filtering section and add each LAB computer one at a time.  That seems a little tedious, so is there an easier way?  I don't know anything about WMI filters, are they applicable for this?

I guess I could create a computer group in ADUC and add all the LAB PCs to the group, then select that computer group in the GPO's Security Filtering section?

TIA,
-Mike
LVL 1
Mike ReedOwner, janitor, bottle washer :)Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

yo_beeDirector of Information TechnologyCommented:
You will want to use WMI Filtering
https://technet.microsoft.com/en-us/library/Cc779036(v=WS.10).aspx
https://technet.microsoft.com/en-us/library/cc780416(v=ws.10).aspx

In GPMC under your Domain you will see WMI Filter
Please see examples in my screenshots

img1img2
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Mike ReedOwner, janitor, bottle washer :)Author Commented:
So my WMI Filter's query would be:
SELECT * FROM Win32_ComputerSystem where name like "LAB"  ?

Thanks!!
0
Mike ReedOwner, janitor, bottle washer :)Author Commented:
That query returned false for one of the LAB PCs.  So maybe my query should be:
SELECT * FROM Win32_ComputerSystem where name like "LAB%" ?

I'm guessing the % symbol is a wildcard?
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

Mike ReedOwner, janitor, bottle washer :)Author Commented:
using LIKE "LAB%" did not work either, as it returned false for a computer named LAB01

I guess I'm missing something?
0
yo_beeDirector of Information TechnologyCommented:
Did you apply it to the GPO? Just creating the WMI Filter will not work it needs to be set within the GPO.
Can you post some more details like screenshots of the GPO and where the GPO is being applied to as well as where the computer object sits in the OU.
0
Mike ReedOwner, janitor, bottle washer :)Author Commented:
Interestingly, when I rerun the Results wizard for a computer named "LAB02" the WMI filter containing "LAB%" is now evaluating to True.  I wonder why it evaluated as False initially?  I've been running into delays with GPOs getting applied too.  Shouldn't running Group Policy Results (using GPMC on the only DC)  yield immediate results?  I know that on client machines there can be a delay until the policy refreshes (or one runs GPUdate /Force).  But when checking results on the DC itself using GPMC's Group Policy Results, shouldn't changes be immediate?
0
Mike ReedOwner, janitor, bottle washer :)Author Commented:
I did not realize that the Group Policy Results tool queries the target computer and retrieves the current settings.  So recent policy changes will not be refelected in the report until after a policy refresh has occurred (e.g. restart computer or run GPUpdate /Force)
0
yo_beeDirector of Information TechnologyCommented:
The model component of GPMC can be used to see what if scenario not the Result Wizard. The Results is the same thing as RSoP on a local computer.

Glad so see that it worked.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Active Directory

From novice to tech pro — start learning today.