Pages

Saturday, May 23, 2015

Deploying SharePoint solutions using PowerShell

Add the solution to the farm
1. Open SharePoint Management Shell with administrator privileges.(Run as administrator)
2. Type following command and run.

Add-SPSolution [path_to_the_wsp_file]

ex: Add-SPSolution C:\ContractRenewal.wsp

*Note - make sure the name of the wsp file path is not too longer.

Deploy the solution in farm
1. Open Central Administration with administrator privileges.(Run as administrator)
2. Go to System Settings.
3. Under the Farm Management Section select Manage farm solutions.
4. Click on the solution with the name of your solution.
5. Click Deploy Solution.
6. Under the Deployment settings select values as follows.

Deploy when :- Now
Deploy to :- All content Web application(or select a specific web application as you need)

No comments:

Post a Comment