Enable send email notification in SharePoint Tasks list using powershell

I have a Tasks list in my team site. I need to enable send email notification so that when a task is assigned or changed the

task owner should get an email notification. Go to team site => Tasks list => List Settings => Advanced Settings. You can find

an option to enable the send email notification.


EmailNotification.jpg

In this blog you will see how to enable send email notification in SharePoint Tasks list using powershell.


Powershell Script:

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