Add-SPSolution
"C:\sharepoint2013\Services.wsp"
or
Add-PSSnapin
Microsoft.SharePoint.Powershell
Set-ExecutionPolicy
unrestricted
echo
"Uninstalling solution"
$sln =
get-spsolution -identity Services.wsp
echo
"Started solution retraction..."
while($sln.JobExists)
{
echo ">
Uninstall in progress..."
start-sleep -s
10
}
remove-spsolution
-identity Services.wsp -confirm:$false
Add-SPSolution
-LiteralPath C:\Deployments\Services.wsp



No comments:
Post a Comment