This SharePoint tutorial explains, how to disable and enable alert in SharePoint 2019 or SharePoint 2013/2016.
We will see how we can disable or enable alerts in SharePoint 2019/2016/2013 using PowerShell or STSADM.
SharePoint Tutorial Contents
We can easily enable or disable alert in SharePoint using STSADM or PowerShell command.
Step 1: The below is the screenshot of my library where you can see the Alert me option on the right side of the ribbon in any list and document library in SharePoint. Below is the list ribbon in SharePoint 2019.
Step 2: You have to run the below command to deactivate alert in web application level or site collection level in SharePoint.
stsadm -o setproperty -propertyname alerts-enabled -propertyvalue false -url http://rajsitecollection/sites/Attendance
Step 3: Once this command executed successfully then Alert me option will disappear from the document library.
Below is the STSADM command to enable alerts in SharePoint.
stsadm -o setproperty -propertyname alerts-enabled -propertyvalue true-url http://rajsitecollection/sites/Attendance
Below is the PowerShell script to enable/disable alerts in SharePoint 2013/2016/2019.
$webapp= Get-SPWebApplication "http://rajsitecollection"
# To disable alerts for SharePoint Web application
$webapp.AlertsEnabled = $false
$webapp.Update()
# To enable alerts in SharePoint Web application
$webapp.AlertsEnabled = $true
$webapp.Update()
You may like following PowerShell SharePoint tutorials:
- How to change SharePoint authentication from classic mode to claims based mode in SharePoint using PowerShell
- Delete content type from SharePoint list using PowerShell
- 3 Different ways to Change Site Collection URL in SharePoint 2013/2016 using PowerShell
- How to activate publishing feature in SharePoint 2013/2016 using PowerShell Script
- Getting Started with PnP PowerShell – SharePoint 2013/2016/SharePoint Online
- 25+ PowerShell SharePoint Examples
- Bulk SharePoint Online Site Collection Creation using PowerShell
- Delete Hidden Web Application in SharePoint 2013 using PowerShell
- Working with file modification time and date using PowerShell
Note:
You may need to restart ” Windows SharePoint Services timer” or execute stsadm -o execadmsvcjobs once.
Hope this SharePoint tutorial helps to enable/disable Alert feature in SharePoint 2019/2016/2013.
Rajkiran is currently working as a SharePoint Consultant in India . Rajkiran having 7+ years of experience in Microsoft Technologies such as SharePoint 2019/2016/2013/2010, MOSS 2007,WSS 3.0, Migration, Asp.Net, C#.Net, Sql Server, Ajax, jQuery etc.He is C#Corner MVP (2 Times).
Hi, does this work in Sharepoint Online ?
Thanks, regards Tony.