Solved

WMI Filtering in GPO

Posted on 2012-03-19
5
823 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
Comment Utility
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
Comment Utility
and to confirm...this runs as system right?
0
 
LVL 15

Expert Comment

by:achaldave
Comment Utility
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
Comment Utility
Added domain computers...testing today...
0
 
LVL 1

Author Comment

by:kf4ape
Comment Utility
perfect!
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

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:…
Know what services you can and cannot, should and should not combine on your server.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 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

18 Experts available now in Live!

Get 1:1 Help Now