I’ve seen some PowerShell scripts that do this–but the author of the article said it only disables new alerts.
We have a user that wants to temporarily disable alerts to do some maintenance on the list (add fields) without 300 users receiving emails.
Is there javascript we could put in a content editor. Not totally certain of where to put it.
You can use the following stsadm command to disable alerts temporarily.
stsadm -o setproperty -pn alerts-enabled -pv False -url <site url>
To enable the alerts use the following:
stsadm -o setproperty -pn alerts-enabled -pv True -url <site url>