I have got around 10's of webpart solutions that I need to add and then deploy to all web applications, I would prefer if someone can share easiest way of doing it.

1 Answer 1


The easiest way would be to bundle them all into a single solution as there is no reason for each web part to be in it's own solution, aside from development silos.

Beyond that, you are likely looking at writing a very large batch file / powershell script that retracts the features, retracts the solutions, deletes the solutions, then adds the solutions, redeploys them and then activates the features on their respective web applications. The specifics of this will vary with the farm and with each solution but you are basically looking at a lot of this:

stsadm -o deactivatefeature ...
stsadm -o retractsolution ...
stsadm -o deletesolution ...
stsadm -o addsolution ...
stsadm -o deploysolution ...
stsadm -o activatefeature ...
  • 1
    Because is SharePoint 2007, just make sure you prepare yourself if you plan to use Powershell, see here nickgrattan.wordpress.com/2007/09/03/… Jan 3, 2013 at 19:27
  • @C.Marius Agreed. Everyone who is doing anything administrative with SharePoint really should be getting comfortable with PowerShell. The fact that PowerShell simply rocks is an added benefit :)
    – Dave Wise
    Jan 3, 2013 at 19:42
  • 2
    If you are new to PowerShell and SharePoint i have found the builder tool quite handy: microsoft.com/resources/TechNet/en-us/Office/media/… Jan 3, 2013 at 19:50
  • 1
    Of course, if you don't have support for PowerShell, try creating a big batch file (.bat) that performs all the deployment. Jan 3, 2013 at 22:29
  • @DaveWise thanks for your answer but All of these solutions already got several webparts in them and they are all categorized so bundling solutions will make things complicated as well as hard to debug so I don't think it will best practice to bundle them up, I thought about power shell script but was wondering if someone knew any utility that could be helpful and fasten things up I wasn't aware of, if not then I will try to use Power Shell or creating a batch file. Jan 3, 2013 at 23:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.