Saturday, 20 October 2012

Remove Solution using Powershell

Add-PsSnapin Microsoft.SharePoint.Powershell –ErrorAction SilentlyContinue

 

Uninstall-SPSolution –Identity readmorewsp.wsp  -force

Write-Host "Finished! Press enter key to exit." -ForegroundColor Green
Start-Sleep -Seconds 30

Remove-SPSolution –Identity readmorewsp.wsp -force

Write-Host "Finished! Press enter key to exit." -ForegroundColor Green
Start-Sleep -Seconds 5

Uninstall-SPSolution –Identity fpmasterpage .wsp  -force

Write-Host "Finished! Press enter key to exit." -ForegroundColor Green
Start-Sleep -Seconds 30

Remove-SPSolution –Identity fpmasterpage .wsp -force

Write-Host "Finished! Press enter key to exit." -ForegroundColor Green

 

Write-Host "Finished! Press enter key to exit." -ForegroundColor Green
Read-Host

No comments:

Post a Comment