I have used successfully the below script to activate the defunct function in 2013 tasks lists Send email to assignee. It used to work perfectly and now I get an error in powershell saying that the action EnableAssignToEmail is not recognized.
Any clue on why this is happening and what should I do?
Add-PSSnapin Microsoft.SharePoint.Powershell
$web = Get-SPWeb "http://foo/web"
$list = $web.Lists.TryGetList("Tasks")
$list.EnableAssignToEmail = $true
$list.Update()