+1 vote
in PowerShell by
To enable alerts for Web application we use below code

1 Answer

0 votes
by

To enable alerts for Web application we use below code

$SPwebapp=Get-SPWebApplication "http://SharePointSite.com"

$SPwebapp.AlertsEnabled = $true

$SPwebapp.Update()

# To Disable alerts for a Web application

$SPwebapp.AlertsEnabled = $false

$SPwebapp.Update

Related questions

+1 vote
asked Jan 17, 2022 in PowerShell by rajeshsharma
0 votes
asked Sep 11, 2021 in AWS Access Management by SakshiSharma
...