Solved

WMI Filtering in GPO

Posted on 2012-03-19
5
825 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 500 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

1. Boot PC and press F10, select storage options and change the compatibility from “AHCI” to “IDE”, save and exit 2. Boot PC and press F12 3. Upon PXE display of searching for DHCP server, press Pause break to obtain MAC address 3. Open Configu…
The question has been asked on multiple occasions as to how best to do printing in a remote desktop or terminal services environment.   It seems that this particular question has plagued several people and most especially as Terminal Services, as…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

867 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now