/ Published in: Windows PowerShell

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction "SilentlyContinue" $SolutionPackageName = "MySolution.wsp" # check to see if solution package has been installed if ($solution -ne $null) { # check to see if solution package is currently deployed if($solution.Deployed -eq $true){ Uninstall-SPSolution -Identity $SolutionPackageName -Local -Confirm:$false } }
Comments
