• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 644
  • Last Modified:

GPO WMI Filter to check if a machine is a server 2000 or 2003 and it is NOT a domain controler

Hi,

Someone great with WMI filters could comment on this.  I want a "select * from" command for a WMI filter in AD GPO.

I want the filter to work in the "root\CIMV2" namespace of course. I want to check if the following is true;

A windows Server, 2000 or 2003 and NOT a domain Controler.

Thanks in advance.
Peter
0
PeterSinger
Asked:
PeterSinger
  • 2
  • 2
2 Solutions
 
Michael PfisterCommented:
Instead of creating an elaborate WMI filter, why not put the DCs in OU "DCs" and the member servers in a different OU "MemberServer" and link the GPO(s) accordingly?
0
 
Michael PfisterCommented:
BTW, WMI filters are not supported on Windows 2000
0
 
PeterSingerAuthor Commented:
The solution is to create a WMI filter with the following statement;
For Server 2003 and above only
Select *  from Win32_ComputerSystem where DomainRole = 3
As commented above the WMI filter will not work on a 2000 server at all.
I created a batch file and ran it in the logon section and made this policy only run at logon.
The script did a check fior the operating system then ignored windows 2000 domain controlers.
for /f "tokens=* delims=" %%a in ('ver') do @set osversion=%%a
Peter
0
 
PeterSingerAuthor Commented:
I placed the solution on-line to the issue but I would not have reached the solution if the comment was not made about Windows 2000 abilities re WMI filters.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now