Is there a quick way to refresh a DP?

Goto the SMS 2003 Home Page

 

Contributed By: Craig Massey
This is a script to refresh all packages assigned to a distribution point.

The technique works, but the code may need adapting to suit SMS topologies.

sitecode = "Your 3 character Sitecode"

Set loc = CreateObject("WbemScripting.SWbemLocator")
Dim WbemServices

Set WbemServices = loc.ConnectServer( , "root\SMS\site_The 3 letter code of your primary site")

Set DPs = wbemServices.ExecQuery("Select * From SMS_DistributionPoint WHERE SiteCode='" & sitecode & "'")
For Each DP In DPs
   DP.RefreshNow = True
   DP.Put_
Next
 

To see other SMS 2003 Administration FAQs click here.
© FAQShop.com 2003 - 2007

Goto the SMS 2003 Home Page