WMI Filtering in GPO

Posted on 2012-03-19
Last Modified: 2012-05-28
I am trying to build a GPO to deploy SCCM to any new boxes to the domain, however doing this will cause some heartache with reapplication of the GPO stack...I am trying to do a WMI Filter for the Win32_Services filter but i am coming back with NULL which kills the GPO...also did a CM_Datafile one and NULL also...

so I guess how to tell it to install if something is not present...
Question by:kf4ape
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
  • 3
  • 2
LVL 15

Accepted Solution

achaldave earned 500 total points
ID: 37739994
You don't need to configure GPO to deploy client, you can utilize client push feature of SCCM

Here is the details of how to deploy using gpo

or use this startup script

Dim strComputer
Dim WshShell
Dim strQuery
Dim objWinsvc

strComputer = "."
Set WshShell = WScript.CreateObject("WScript.Shell")
strQuery="SELECT * from Win32_service"
Set objWinsvc=GetObject("WinMgmts://" & strComputer & "/root/cimv2").ExecQuery(strQuery)

for each objSvc in objWinsvc
    strlst= objSvc.caption
    if strlst = "SMS Agent Host" then
     end if
 if clientInstalled=1 then
    wscript.echo "Client already installed"
 end if

Author Comment

ID: 37740716
and to confirm...this runs as system right?
LVL 15

Expert Comment

ID: 37743362
Yes the script will run with systems credentials when applied to computer policy section of the group policy, make sure smsclient share on sccm server has atleast read permission for everyone or authenticated users.

Author Comment

ID: 37761152
Added domain computers...testing today...

Author Comment

ID: 38019138

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
*** Hardware Malfunction Dell T610 7 125
can i use dropbox on a server used as a local share 8 132
BgInfo help 5 61
Decommissioning DNS server question 3 31
Problem Description: Actually I found the below issue with some customers after migration from SMS 2003 to SCCM 2007 and epically if they change site code, some clients may appear in the console with old site code, plus old sites still appearing …
Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
In a recent question ( here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

749 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