Tool to refresh DPs (Full Version)

All Forums >> [Management Products] >> Microsoft Systems Management Server >> SMS 2003



Message


EdwardKK -> Tool to refresh DPs (6/10/2008 1:55:56 PM)

Hi all,

I'm looking for an app/tool that will allow me to refresh DPs.  I've seen the CloneDP app, but it doesn't quite do what i want.  I've got packages assigned to some DPs, but they aren't physically copied down, which is weird.  If I do a manual refresh, they come up fine.  What i would like is something i can go into and say, "Refresh this DP" or "Refresh these DPs" with all the packages assigned to it.  I can always do it manually, but I'm lazy that way. :)

thanks for any ideas!






bmason505 -> RE: Tool to refresh DPs (6/10/2008 7:10:55 PM)

You can set a schedule on the package to refresh the DP's, but it's an all or nothing thing.  Think you're looking for more of a right click console tool to do this, huh?




rzander -> RE: Tool to refresh DPs (6/11/2008 3:29:43 AM)

You can do this with CloneDP... You just have to reassign the existing packages to the DP and clonedp will refresh these packages...




EdwardKK -> RE: Tool to refresh DPs (6/13/2008 2:04:57 PM)

Brian, I hadn't thought of that.  I had thought that if I set the schedule to update the dps on a regular basis that will update the package number, which would then tell clients that they haven't run the current version of the program.  But you're right, I could just refresh them all once a week or so. But I'm not sure it's worth it to do so.  I really am looking for more of a one off solution.  For example, if I have hardware replaced, and just want to refresh all the packages to make sure its all happy.  But it's probably not a bad idea to set these sites to refresh anyway once a week just to be certain they are up to date.

I tried that in CloneDP, and it sort of works.  it would just be nice if you could just pick a site system and say "refresh all assigned packages"   Brian's right, I'm looking for more of a right click type of command.   Does SCCM have this?  Anyone know?

Part of the fun is that I have some packages which orginate from the local SMS server, and some originate from the parent site.  So CloneDP can work in some instances, but it creates an interesting mesh of locked packages on site systems depending on where I run it from.  If i run it from the parent, then I can't manage it's changes from the child in the future, and vice versa.  I could get around this by not assigning packages to sites from the parent, but I have to manage other child sites from that parent, so there is no perfect answer for me. 

Oh the inhumanity..... woe is me.   [:D]





aparrott -> RE: Tool to refresh DPs (6/20/2008 3:48:10 PM)

Air Code -- Untested - Use at your own risk.

Copy to a VBS file and give it a try.  Remove the 2nd echo if you want to refresh all the packages.  As it is at least you'll be able to test it one at a time. 

------------------------------

siteName = "[YOURSITECODE]"
serverName = "[YOURSERVERNAME]"

' --- Create Objects
Set loc = CreateObject("WbemScripting.SWbemLocator")
Set WbemServices = loc.ConnectServer(servername , "root\SMS\site_" & siteName)
   
  Set packages = WbemServices.ExecQuery("Select * From SMS_Package)
  Wscript.Echo "Number of Packages --> " & packages.Count
   For Each package In packages 
      packageID = package.PackageID
      Package.RefreshPkgSource( )
      Wscript.Echo "Refreshed -> " & package.Name & "with PkgID -> " & packageID
      packageID = empty
   Next
      




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.265625