SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 2 down vote accepted

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 ...
share|improve this answer
Because is SharePoint 2007, just make sure you prepare yourself if you plan to use Powershell, see here… – Marius Constantinescu - MVP Jan 3 '13 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 '13 at 19:42
If you are new to PowerShell and SharePoint i have found the builder tool quite handy:… – Chris Johnson Jan 3 '13 at 19:50
Of course, if you don't have support for PowerShell, try creating a big batch file (.bat) that performs all the deployment. – Falak Mahmood Jan 3 '13 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. – Muhammad Raja Jan 3 '13 at 23:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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