Saturday, 18 April 2015

Disable alerts in SharePoint

Power shell will becoming easy to do our tasks,now we are doing how to disable and enable the alerts to the particular web application in SharePoint 2013/2010.

First we have to get the Web Application URL into a variable using the Property "Get-SPWebApplication" and using "AlertsEnabled" property we are trying to enable or disable the alerts using the Power Shell.


To Disable the alerts in the particular Web Application 

$weburl= Get-SPWebApplication "http://DotnetSharePoint/"
 $weburl.AlertsEnabled = $false
$weburl.Update()

 To Enable alerts in the  particular Web Application

$weburl= Get-SPWebApplication "http://DotnetSharePoint/"
$weburl.AlertsEnabled = $true
$weburl.Update()

Disable Alerts for List

In the same way some times we have to disable the alerts to the particular list there is no OTB feature to disable the alerts to particular list,but we do it by using jquery/java script read the current page URL and list, disable the button in the ribbon.

No comments:

Post a Comment