Upgrade all the Alert Plus Sites in a Site Collection or Web Application via PowerShell

Upgrade all the Alert Plus Sites in a Site Collection or Web Application via PowerShell

Running the Alert Plus Utility is one of the steps you need to do when upgrading Alert Plus to newer releases. This utility will update existing alerts to use new features that may be available.

The Alert Plus Utility is run on a SharePoint Web Front End (WFE) server and has a user interface. However, when running from the user interface you can update alerts in only one site at a time. If Alert Plus is used on several sites on your SharePoint farm, upgrades site-by-site can be tedious. To save time, you can automate the utility via PowerShell to process all the alerts in a web application or site collection.

Follow the steps below to run the utility via PowerShell:

Step Action
1. The Alert Plus Utility is part of the Alert Plus installation files. It is located in the /misc ** folder.
Alert Plus Utility install

2.

Download the *.ps1 file below and put it in the same folder as the Bamboo.AlertPlusUtilities.exe on a farm server. This is usually the Bamboo.AlertPlusUtilities folder included in the Alert Plus installation files.

Bamboo.AlertPlusUtilitySP2010.ps1

NOTE: This PowerShell script will not run on a SharePoint 2007 farm. If you are using SharePoint 2007, you can save time by running the utility from the command line. See Running the Alert Plus Utility via the Command Line for more information.

3.

Open Windows PowerShell as an administrator and navigate to the location of the Alert Plus Utility. Set the execution policy to unrestricted by entering:

Set-executionpolicy unrestricted

When prompted, enter “Y” for YES.
Setting PowerShell Execution Policy

4.

Run the script by entering:

.Bamboo.AlertPlusUtilitySP2010.ps1 -[Scope] "[URL]"

Where:

  • [Scope] can be:
    • webappurl – Run the utility for all Sites in the Web Application
    • siteurl – Run the utility for all Sites in the Site Collection
    • weburl – Run the Utility in a specific Web (Subsite)
  • [URL] is the URL for the Web Application, Site Collection, or Web

Example:

   .Bamboo.AlertPlusUtilitySP2010.ps1 -webappurl 'http://acsp2010'

As each site in the web application is run, you’ll see feedback in the PS window:
PshellUI1.jpg

5.

When the script is finished, you’ll be returned to the command prompt.

A log called trace.log will be written to the local directory. Review the log file for errors. If you find error messages and have questions about how to address them, please open a support ticket via My Bamboo, and attach the trace.log file as part of the information.

Return to Use the Alert Plus Utility to Upgrade Sites