Link to home
Start Free TrialLog in
Avatar of Kylo Ren
Kylo RenFlag for United States of America

asked on

WMI Queries

Hi Guys

I need to creare 4 simple wmi quries.

1 for windows 2003
1 for windows 2003 r2
1 for windows 2008
1 for windows 2008 r2

What is a simple wmi query that i can use to determine the os?

so the logic for the 1st wmi query should be to check the os and then have it match windows 2003 (or whatever the official output is)

Hopefully this makes sense.  Please advise
ASKER CERTIFIED SOLUTION
Avatar of Chris Dent
Chris Dent
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Kylo Ren

ASKER

no need for powershell.

I need a wmi query for filtering GPO's so they only get applied to specific servers.

Then perhaps the example above?

Caption LIKE '%Server 2003,%'

Chris