Search This Blog

Friday, April 18, 2014

SharePoint 2010 PowerShell Script Commands for Deployment Process



The following PowerShell script commands are used in our day to day life for Deployment process on SharePoint 2010.

Adding SPSolution:

Add-SPSolution -LiteralPath "solution path\solutionname.wsp"

Install SPSolution:

Install-SPSolution –Identity “solutionname.wsp” –GACDeployment.

Upgrade the Existing Solution:.

Update-SPSolution –Identity “solutionname.wsp” –LiteralPath “solutionpath\solutionname.wsp” –GACDeployment

UnInstall the SPSolution:

UnInstall-SPSolution  -Identity “solutionname.wsp”

Remove the SPSolution:

Remove-SPSolution –Identity “solutionname.wsp”

Deploy the feature for particular site collection:

Enable-SPSolution –Identity “featurefoldername” –url “sitesurl”

Activate the feature for particular site collection:

Install-SPSolution –path “featurefoldername”

Deactivate the feature from a particular site collection:

Uninstall-SPFeature –path “featurefoldername”

Remove the feature from a particular site collection:

Disable-SPFeature –Identity “featurefoldername” –url “siteurl”

No comments:

Post a Comment