Solved

Using Multiple CLASSes in WMI filter query for GPO

Posted on 2014-09-18
9
980 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 22

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 22

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 22

Accepted Solution

by:
yo_bee earned 500 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 22

Assisted Solution

by:yo_bee
yo_bee earned 500 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 22

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

Suggested Solutions

This article describes my battle tested process for setting up delegation. I use this process anywhere that I need to setup delegation. In the article I will show how it applies to Active Directory
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

763 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