Disable Email Alerts at WebApplication Level In SharePoint 2013

In one of my recent technical panel discussion on SharePoint 2013, there comes a interesting question from an enthustiastic chap on disabling email alert at web application level. So we found a way out to do this at the web application level.
  1. $weburl= Get-SPWebApplication "http://msyite/"  
  2. $weburl.AlertsEnabled = $false  
  3. $weburl.Update()  
In a similar way, we can enable the alerts at the web application level.
  1. $weburl= Get-SPWebApplication "http://mysite/"  
  2. $weburl.AlertsEnabled = $True  
  3. $weburl.Update() 
Happy SharePointing :-)