wmi group policy filter

Posted: 01-30-2006, 12:20 PM
Hi all,

Anyone have an idea how to create a wmi filter that applies to a gpo,
that makes sure that the gpo only applies to computers that do NOT have a
certain service installed?


--
Kim Oppalfens
Telindus Belgium
MVP Windows Server System - SMS


Reply With Quote

Responses to "wmi group policy filter"

Scott McNairy \(MVP\)
Guest
Posts: n/a
 
Re: wmi group policy filter
Posted: 02-20-2006, 07:04 PM
Well the script would look like below, but I am unsure as to where/how to
apply one of these "WMI Policy Filters"

set svc = getobject("winmgmts:root\cimv2")
set objEnum = svc.execQuery("select __relpath From win32_service where name
= 'ServiceName' and state = 'running'"
for each obj in objEnum
wscript.echo " Found the service in a running state"
next

Hope that helps.

--
Scott McNairy
Microsoft MVP - Windows Server Management Infrastructure


"Kim Oppalfens <MVP>" <Kim dot Oppalfens@google mail.com> wrote in message
news:%23ZszxHbJGHA.1288@TK2MSFTNGP09.phx.gbl...
> Hi all,
>
> Anyone have an idea how to create a wmi filter that applies to a gpo,
> that makes sure that the gpo only applies to computers that do NOT have a
> certain service installed?
>
>
> --
> Kim Oppalfens
> Telindus Belgium
> MVP Windows Server System - SMS
>

Reply With Quote
 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
The new Group Policy Or Tsemah Windows Vista Administration 0 09-06-2006 08:49 AM
Group policy for Vista David Sherman Windows Vista 4 03-21-2006 03:42 PM
Group Policy from Command? Ben Morrell Windows XP Configuration & Management 4 06-20-2004 05:27 PM
group policy Franz Chernjak Windows XP Beta 0 05-25-2004 11:53 AM
Win 2K Server Group Policy with Win XP Salar Windows XP Network & Web 0 06-30-2003 05:51 PM