Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Using Multiple CLASSes in WMI filter query for GPO

Posted on 2014-09-18
9
Medium Priority
?
1,343 Views
Last Modified: 2014-09-22
I want to configur a GPO for all workstations full stop and for all member servers that contain a C:\Program Files\Citrix\XenApp folder

Meaning the settings will be deployed to my Citrix Server farm and to my workstations

How do I combine CLASSes in a WMI query

Here is what I'm attempting to save but the GPM won't allow it...
(SELECT * FROM Win32_OperatingSystem WHERE ProductType = 1) OR (FROM Win32_Directory WHERE Name = 'C:\\Program Files (x86)\\Citrix\\XenApp')

Open in new window

0
Comment
Question by:antonioking
  • 5
  • 4
9 Comments
 
LVL 24

Expert Comment

by:yo_bee
ID: 40331801
You might make it easier on you if you put all your Citrix Servers in a single sub OU of their current OU.
Link your GPO to that out rather than trying to filter it.

Here is a link that may help
http://blogs.technet.com/b/askds/archive/2012/02/11/friday-mail-sack-get-off-my-lawn-edition.aspx#wmi
0
 

Author Comment

by:antonioking
ID: 40332099
Hi yo_bee!

Thanks for the reply, I have to disagree. Restructuring my AD certainly wouldn't be easier than creating a WMI filter for the GPO

Sure I could do that, but the policy needs to apply to all my workstations too.
I have multiple OUs for my workstations and only the workstations and citrix servers in 1 site should have the GPO applied.
0
 
LVL 24

Expert Comment

by:yo_bee
ID: 40332329
Pretty sure that the link I posted should help or did you try that and it did not work?

Have you looked at http://sdmsoftware.com/gpoguy/free-tools/library/wmi-filter-validation-utility/
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:antonioking
ID: 40336142
Hi yo_bee
Thanks for the guides, the first link does not achieve what I was hoping, since both classes must result to true.
I actually was hoping to get my WMI query to work if just one class query is true.
The Win32_OperatingSystem ProductType =1 OR the Win32_Director Name = C:\\Program Files (x86)\\Citrix\\XenApp

I have tried the validation filter but I don't actually have a WMI query to test yet... this is what I need help with.
0
 
LVL 24

Accepted Solution

by:
yo_bee earned 2000 total points
ID: 40336297
I am not sure you can even do this?
What is this GPO going to do?
0
 

Author Comment

by:antonioking
ID: 40336311
Install some software and some file GPPs
0
 
LVL 24

Assisted Solution

by:yo_bee
yo_bee earned 2000 total points
ID: 40336318
The GPP part is easy because you will be able to create multiple WMI with either being true, but the install may need to be scripted out using WMI in the script to see if the install can start.

Is it an MSI or EXE that has switches for a silent install?
0
 

Author Closing Comment

by:antonioking
ID: 40336321
Hi yo_bee
The software is an MSI. I'll create a script to deploy the software and I'll modify the GPPs too.

Thanks
Antonio
0
 
LVL 24

Expert Comment

by:yo_bee
ID: 40336326
Good luck and if you need assistance I will be still monitoring this thread
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Active Directory can easily get cluttered with unused service, user and computer accounts. In this article, I will show you the way I like to implement ADCleanup..
Wouldn't it be nice if objects in Active Directory automatically moved into the correct Organizational Units? This is what AutoAD aims to do and as a plus, it automatically creates Sites, Subnets, and Organizational Units.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Suggested Courses

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question