SharePoint 2013 - Enable Email Notification or Disable Alerts

Get All Alerts


#Variables
$WebURL = "https://SHAREPOINT/"
$ListName="EmergencyPreparedness"
#Function to Get All Active Alerts on a Given List
Function Get-ListAlerts($WebURL, $ListName)
{
#Get the Web and List objects
$Web = Get-SPWeb $WebURL
$List = $web.Lists.TryGetList($ListName)
#Get All Alerts created in the list - Which are Active
$ListAlerts = $Web.Alerts | Where-Object {($_.List.Title -eq $List.Title) -and ($_.Status -eq "ON")}
foreach($Alert in $ListAlerts)
{

write-host "Alert' - $($Alert.Title)' Created for User - '$($Alert.User.Name)'"
}

#Dispose web object
$Web.Dispose()
}
#Call the function Appropriately to Disable or Enable Alerts
Get-ListAlerts $WebURL $ListName

Enable email notifications for Tasks list in SharePoint 2013

In SharePoint 2013 you will find that the option to enable email notification for Tasks list is no longer there. It used to be under List Settings > Advanced Settings > Send e-mail when ownership is assigned? (Yes/No). It is still there for Issues list in SharePoint 2013 however.
The good news is you can still enable it for Tasks list in SharePoint 2013, and it still works. The only thing is you’ll need to use PowerShell.

Add-PSSnapin Microsoft.SharePoint.Powershell
$web = Get-SPWeb "http://myServer/myWeb"
$list = $web.Lists.TryGetList("Tasks")
$list.EnableAssignToEmail = $true
$list.Update()


OR

$site=Get-SPSite "https://sharepoint"
$web=$site.OpenWeb()
$list=$web.Lists.TryGetList("Tasks")
if($list -ne $null)
{
   $list.EnableAssignToEmail =$true
   $list.Update()
}


Reference