Solved

Using Multiple CLASSes in WMI filter query for GPO

Posted on 2014-09-18
9
1,126 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 23

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 23

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
Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

 

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 23

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 23

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 23

Expert Comment

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

Featured Post

What is a Denial of Service (DoS)?

A DoS is a malicious attempt to prevent the normal operation of a computer system. You may frequently see the terms 'DDoS' (Distributed Denial of Service) and 'DoS' used interchangeably, but there are some subtle differences.

Question has a verified solution.

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

The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

636 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