Tuesday 30 April 2013

UnInstall/Install WSP using PowerShell Commands - Normal Method

UnInstall/Install WSP using PowerShell Commands - Normal Method

Uninstall Application(WSP)

1. Uninstall-SPSolution -identity FileName.wsp -WebApplication http://www.DeployHere.com
 Press Enter Key.
 Enter Y To uninstall

Wait for 30 Secs - recommended

2. Remove-SPSolution -Identity FileName.wsp
 Press Enter Key.
 if ask
 Enter Y To Remove

Install Application(WSP)

1. Add-SPSolution -LiteralPath "D:\FileLocation\FileName.wsp"
 Press Enter Key.
 if ask
 Enter Y To Add new Wsp

2. Install-SPSolution -Identity FileName.wsp -WebApplication http://www.DeployHere.com -GACDeployment
 Press Enter Key.
 if ask
 Enter Y To Install New WSP

Feature Activate/De-activate

1. enable-SPFeature  -Identity FileName_FeatureName -Url http://www.DeployHere.com

2. disable-SPFeature  -Identity FileName_FeatureName -Url http://www.DeployHere.com

No comments:

Post a Comment