How to set SharePoint Search Crawl Schedule as None via Powershell command

​If you wanted to reset your SharePoint 2013 or SP 2010 Search Crawler schedule to none using PowerShell then you can use the following code. The key here is to set the Scheduel to $null. These properties are nullable and by setting them to null will clear all your crawling schedule.

$ssa = "Search Service Application"​

$contentSource = Get-SPEnterpriseSearchCrawlContentSource -SearchApplication $ssa -Identity "Local SharePoint Sites"

$contentSource.IncrementalCrawlSchedule = $null

$contentSource.FullCrawlSchedule = $null

$contentSource.Update​()​