Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

WMI Filtering in GPO

Posted on 2012-03-19
5
Medium Priority
?
850 Views
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...
0
Comment
Question by:kf4ape
  • 3
  • 2
5 Comments
 
LVL 15

Accepted Solution

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

http://technet.microsoft.com/en-us/library/bb632380.aspx

Here is the details of how to deploy using gpo

http://technet.microsoft.com/en-us/library/bb632469.aspx

http://technet.microsoft.com/en-us/library/bb680980.aspx

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)

clientInstalled=0
for each objSvc in objWinsvc
    strlst= objSvc.caption
    if strlst = "SMS Agent Host" then
      clientInstalled=1
     end if
   
 Next
 
 if clientInstalled=1 then
    wscript.echo "Client already installed"
    wscript.quit
 
 else
 
  wshshell.run("\\sccmserver\smsclient\ccmssetup.exe")
 
 end if
0
 
LVL 1

Author Comment

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

Expert Comment

by:achaldave
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.
0
 
LVL 1

Author Comment

by:kf4ape
ID: 37761152
Added domain computers...testing today...
0
 
LVL 1

Author Comment

by:kf4ape
ID: 38019138
perfect!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

Issue: One Windows 2008 R2 64bit server on the network unable to connect to a buffalo Device (Linkstation) with firmware version 1.56. There are a total of four servers on the network this being one of them. Troubleshooting Steps: Connect via h…
Know what services you can and cannot, should and should not combine on your server.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…

877 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