![]() |
|
|
|||||||
| Petri.co.il is happy to award auglan the title of Most Valuable Member !!! |
| Register | Calendar |
Search |
Today's Posts |
Mark Forums Read |
| Notices |
|
|
GPO WMI filtering not workingthis thread has 2 replies and has been viewed 1582 times
|
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
#1
|
||||||||
|
||||||||
|
I have a GPO which I want to only apply to servers so I set up a WMI filter with the following 3 scripts:
select * from Win32_OperatingSystem WHERE Version LIKE "5.2%" AND ( ProductType = "2" or ProductType = "3" ) select * from Win32_OperatingSystem WHERE Version LIKE "6.0%" AND ( ProductType = "2" or ProductType = "3" ) select * from Win32_OperatingSystem WHERE Version LIKE "6.1%" AND ( ProductType = "2" or ProductType = "3" ) The above scripts should apply to Server 2003, Server 2008 & Server 2008 R2 domain controllers & member servers. However when I test the GPO it doesn’t appear to be working. If I just have x1 of the scripts in the filter they all work fine independently. Does anyone know why this is not working with all the scripts on the filter? |
|
#2
|
||||||||||
|
||||||||||
|
Quote:
No single machine can pass all three conditions and therefore the policy will never be applied. You should create a WMI-filter containing a single "WHERE" clause for this WMI class and use the OR operator, instead of using the three "WHERE" clauses. sample; Code:
select * from Win32_OperatingSystem WHERE (Version LIKE "5.2%" OR Version LIKE "6.0%" OR Version LIKE "6.1%") AND (ProductType = 2 OR ProductType = 3)
__________________
This posting is provided "AS IS" with no warranties, and confers no rights. __________________ ** Remember to give credit where credit's due ** and leave Reputation Points for meaningful posts Last edited by Rems; 12th April 2012 at 22:02.. |
|
#3
|
||||||||
|
||||||||
|
Rems - Thanks for this I had a feeling it was something simple in the script.
Have some points Last edited by Deland01; 14th April 2012 at 17:04.. Reason: typo change |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cisco 857W NOT WORKING - DHCP NOT WORKING? - Please help | hotwiredc | Cisco Routers & Switches How-to | 10 | 9th November 2009 18:48 |
| Web Filtering Which way to go???? | Bart586 | General Hardware | 10 | 28th May 2009 13:26 |
| GPO security filtering not working | technician | Active Directory | 1 | 16th September 2008 09:50 |
| PTR filtering | scurlaruntings | Exchange 2000 / 2003 | 13 | 11th April 2008 16:05 |
| Message Filtering is not Working... | arunrajdls | Exchange 2000 / 2003 | 0 | 1st April 2005 10:31 |