Solved

WMI Filtering in GPO

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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

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…
Welcome to my series of short tips on migrations. Whilst based on Microsoft migrations the same principles can be applied to any type of migration. My first tip Migration Tip #1 – Source Server Health can be found listed in my profile here: http:…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

805 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