Create – Edit – Find – Delete SharePoint Alerts using PowerShell #sharepoint # #backup


#

Create – Edit – Find – Delete SharePoint Alerts using PowerShell

Welcome to another PowerShell walk-through. In this article I’m exploring Management of SharePoint Alerts using PowerShell!

Enable or disable alerts for Web application

Create Alert in SharePoint using PowerShell

Get all Alerts for an user in SharePoint with PowerShell:

Create Alerts for All users in a Group:

Update SharePoint Alerts using PowerShell
Get Alerts for a Particular User

Find All Alerts of an User in Entire Site collection

Delete All SharePoint alerts from a List using powershell

Delete user alerts in SharePoint 2010 with PowerShell

Finally, some minimized code:

To delete all alerts:
$SPweb.Alerts| foreach-object <$web.Alerts.Delete($_.Id)>

Filter the alerts for a single list:
#For for e.g. http://SharePoint.com/site/Assets”
$SPweb.Alerts| where-object <$_.ListUrl -like "Assets">

Find all the Alerts for a specific user across the web:
#. is the alias for where-object cmdlet
$web.Alerts |. <$_.UserId -like "Domain\Salaudeen">

Get all the alerts for a user across the entire site collection:
$site.AllWebs | select -expand Alerts |. <$_.UserId -like "Domain\Salaudeen"

You might also like:

SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.

Document SharePoint Farm
Automatically generate SharePoint documentation.


Leave a Reply

Your email address will not be published. Required fields are marked *