Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

WMI Filtering in GPO

Posted on 2012-03-19
5
Medium Priority
?
849 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
[X]
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
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

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

Every system administrator encounters once in while in a problem where the solution seems to be a needle in haystack.  My needle was an anti-virus version causing problems with my Exchange server. I have an HP DL350 with Windows Server 2008 Stand…
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 …
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

730 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