Removing packages from DPs
is there any simple way to remove the packages from DPs? rather than removing one by one
March 20th, 2013 9:11pm

I've never used this, but it should work and just uses the defined methods in the SDK (to my knowledge): http://www.myitforum.com/articles/42/view.asp?id=8904

Alternatively, you could script it yourself using the SDK.

Free Windows Admin Tool Kit Click here and download it now
March 20th, 2013 9:45pm

This tool is good. but there is no option to remove the packages:(

March 21st, 2013 2:09am

The SMS 2003 Recipes book has a sample vbs script that can be used to delete a package (this will delete the package object completely as well as removing it from DPs), you can view the example  in Google books http://books.google.co.uk/books?id=14hWq8NNggwC&lpg=PA127&ots=KezEtp8mIN&dq=sms%202003%20recipes%20packages&pg=PA128#v=onepage&q=sms%202003%20recipes%20packages&f=false (Example 4-4). This still works for the 2007 product and could easily be adapted to accept multiple package IDs e.g. (I have commented out the actual delete command for safety):

If WScript.Arguments.Count < 1 Then
	WScript.Echo "Usage:"
	WScript.Echo "    cscript DeletePackage.vbs PackageID [PackageID]..."
	WScript.Quit
End If

strSMSServer = <SMSServer>

Set objLoc = CreateObject("WbemScripting.SWbemLocator")
Set objSMS = objLoc.ConnectServer(strSMSServer, "root\sms")
Set Results = objSMS.ExecQuery _
	("SELECT * FROM SMS_ProviderLocation WHERE ProviderForLocalSite = true")
For Each Loc In Results
	If Loc.ProviderForLocalSite = True Then
		Set objSMS = objLoc.ConnectServer(Loc.machine, "root\sms\site_" & _
		Loc.SiteCode)
		strSMSSiteCode = Loc.Sitecode
	End If
Next

'Remove Package(s)
For Each packageID in WScript.Arguments
	Set objPackage = GetObject("WinMgmts:\\" & strSMSServer & _
		"\root\SMS\site_"& strSMSSiteCode & _
		":SMS_Package.PackageID='" & packageID & "'")
	'objPackage.Delete_
	WScript.Echo "Deleted " & packageID
Next

Free Windows Admin Tool Kit Click here and download it now
March 21st, 2013 3:01pm

Got a tool for this one..

here you go.

Download link:-http://www.myitforum.com/articles/42/view.asp?id=8904

Steps:-

  1. Install and launch the app. from startall programs Microsoft system centreConfigMgr  DP utility
  2. Connect to your central site server
  3. After some time the below window will appear, browse the DP and uncheck the packages which need to be removed and click on update




November 8th, 2013 3:55pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics