I've used this for various CM07 repetitive tasks with great success. https://github.com/andrebocchini/sccm-powershell-automation-module
Isaac Holmes Client Engineering Specialist University of Notre Dame From: [email protected] [mailto:[email protected]] On Behalf Of Reed Porter Sent: Wednesday, August 14, 2013 2:31 PM To: [email protected] Subject: RE: [powershell] Remove List of Packages from a DP CM 2007 SP2 R2 Thanks. I will check it out. I was trying to force myself to us PS, but time has gotten away, so back to VBscript I go! Reed G. Porter ________________________________ Date: Wed, 14 Aug 2013 11:23:40 -0700 From: [email protected]<mailto:[email protected]> Subject: Re: [powershell] Remove List of Packages from a DP CM 2007 SP2 R2 To: [email protected]<mailto:[email protected]> Russ Slaten's script: http://blogs.msdn.com/b/rslaten/archive/2006/03/01/removing-a-retired-dp-from-all-your-packages.aspx is more for "DP was taken offline, and no one bothered to tell me" to remove all packages from the DP. So it's not quite what you are looking for; but I think you could customize it to delete a DP from a package, instead of delete a DP from every package. Yeah, it's not powershell, and this is the powershell list... but... thought I'd share anyway. Sherry Kissinger ________________________________ From: Reed Porter <[email protected]<mailto:[email protected]>> To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Sent: Wednesday, August 14, 2013 11:29 AM Subject: [powershell] Remove List of Packages from a DP CM 2007 SP2 R2 I'm sure it's been done, but I can't find it. I just want to take list of PKG ID's in a text file and delete them from a DP. All our DP's are DP shares with up to three DP shares per DP. I've gotten us into PreLoadPkgOnsite hell and have 100 + packages per server to remove. Thanks, Reed G. Porter (816) 739-2491 ________________________________ ================================================ Did you know you can also post and find answers on PowerShell in the forums? http://www.myitforum.com/forums/default.asp?catApp=1 ================================================ Did you know you can also post and find answers on PowerShell in the forums? http://www.myitforum.com/forums/default.asp?catApp=1 ================================================ Did you know you can also post and find answers on PowerShell in the forums? http://www.myitforum.com/forums/default.asp?catApp=1 ================================================ Did you know you can also post and find answers on PowerShell in the forums? http://www.myitforum.com/forums/default.asp?catApp=1
