dcsimg

Manually remove Webtrends Advanced Analytics for SharePoint

Products

Webtrends On-Premises 9.x

Cause

To manually remove the Webtrends Advanced Analytics solutions from a SharePoint farm, run the following PowerShell commands. These will disable and then completely remove the Webtrends SharePoint Advanced Analytics solution and the Webtrends SharePoint User Info Collector from the SharePoint farm. If the User Info Collector is not enabled, you will see errors as this script expects it to be enabled. To avoid these errors, do not run any of the commands belowecho “Uninstalling Webtrends User Info Collector”

Add-PSSnapin “Microsoft.SharePoint.PowerShell”
echo ” “
echo “Uninstalling Webtrends Advanced Analytics”
$sln = Get-SPSolution -Identity Webtrends.SharePoint.AdvancedAnalytics.wsp
if ($sln.ContainsWebApplicationResource) {
Uninstall-SPSolution -Identity Webtrends.SharePoint.AdvancedAnalytics.wsp -AllWebApplications -Confirm:$false
} else {
Uninstall-SPSolution -Identity Webtrends.SharePoint.AdvancedAnalytics.wsp -Confirm:$false
}
echo “Started Webtrends Advanced Analytics retraction…”
while($sln.JobExists) {
echo ” > Uninstall in progress…”
Start-Sleep -s 10
}
Remove-SPSolution -Identity Webtrends.SharePoint.AdvancedAnalytics.wsp -Confirm:$false
echo “Removed Webtrends Advanced Analytics”
echo ” “
echo “Uninstalling Webtrends User Info Collector”
$sln = Get-SPSolution -Identity Webtrends.SharePoint.UserInfo.wsp
if ($sln.ContainsWebApplicationResource) {
Uninstall-SPSolution -Identity Webtrends.SharePoint.UserInfo.wsp -AllWebApplications -Confirm:$false
} else {
Uninstall-SPSolution -Identity Webtrends.SharePoint.UserInfo.wsp -Confirm:$false
}
echo “Started Webtrends User Info Collector retraction…”
while($sln.JobExists) {
echo ” > Uninstall in progress…”
Start-Sleep -s 10
}
Remove-SPSolution -Identity Webtrends.SharePoint.UserInfo.wsp -Confirm:$false
echo “Removed Webtrends User Info Collector”