WMI Filters in Group Policy
johnnyg5646
Member Posts: 173
in Off-Topic
I'm trying to use a WMI filter in my Group Policy to push a GPO to one specific workstation in an OU without it going to any of the others. If anyone could give me a quick little script for that, or point me in a direction I would be absolutely thrilled.
Thanks everyone!!
Thanks everyone!!
BS - Computer Science
MS - Computer Information Systems
_________________
MS - Computer Information Systems
_________________
Comments
-
undomiel Member Posts: 2,818Why not use security filtering? Remove the authorized users group and add the computer account you're wanting for your GPO.
If you insist upon WMI then the query you want would be:
Select * FROM Win32_ComputerSystem WHERE Name="Put the name of the system you want in these quotes"
WMI filtering is slower then using security filtering though.
Edit:
P.S.
WMI Tools
http://www.microsoft.com/downloads/details.aspx?FamilyID=6430f853-1120-48db-8cc5-f2abdc3ed314&DisplayLang=en
Great for finding what you need for WMI scripting.Jumping on the IT blogging band wagon -- http://www.jefferyland.com/ -
JDMurray Admin Posts: 13,089 Adminundomiel wrote:WMI filtering is slower then using security filtering though.
-
astorrs Member Posts: 3,139 ■■■■■■□□□□Security filtering is all done by the DC based on AD objects (computers, users, groups) while WMI filters require the DC to perform WMI calls against the client computer, hence the delay. You would usually only want to use WMI filters for things like "apply this GPO on all computers running Windows 2000 but not on any running Windows XP".
-
JDMurray Admin Posts: 13,089 Adminundomiel wrote:WMI Tools
http://www.microsoft.com/downloads/details.aspx?FamilyID=6430f853-1120-48db-8cc5-f2abdc3ed314&DisplayLang=en
Great for finding what you need for WMI scripting. -
undomiel Member Posts: 2,818This is a case of where I'm just relaying information that I've read in a number of places but have never confirmed myself. Guilty as charged!
Now to see if I can find some time to do some performance testing.Jumping on the IT blogging band wagon -- http://www.jefferyland.com/ -
johnnyg5646 Member Posts: 173Thanks guys!
Here is what I did:
Root\CimV2;
Select * from Win32_OperatingSystem WHERE CSName = "computer name"
works great!!BS - Computer Science
MS - Computer Information Systems
_________________