Invoke-AlertFixup
We have seen many cases where alerts have issue because server url changed after 2101 migration.
This article will allows you fix the URLs sent by alerts after a site has changed URLs.
Go to https://gallery.technet.microsoft.com/ScriptCenter/en-us/877d2abd-fce9-4545-b223-7637936dd888
Copy the script and save it with “Invoke-AlertFixup.ps1” on your sharepoint server.
· On the Start menu, click All Programs.
· Click Microsoft SharePoint 2010 Products.
· Click SharePoint 2010 Management Shell.
· Change to the directory where you saved the file.
At the Windows PowerShell command prompt, type the following:
NOTE:- It is period space period /Invoke-AlertFixup.ps1
It will take you to next line. This script contains the Invoke-AlertFixup advanced function.
To display all alerts that would be updated using the Invoke-AlertFixup command use this command (it will not update any thing)
Then running same command without (-whatif) and it will fix the alert issue.