Start Search Crawl using PowerShell

Below is a PowerShell function that will query for all the search scopes (including FAST search scopes) from the default enterprise search service application (and FAST service application) and starts a full crawl. The script also waits for the crawl to be completed: function StartCrawl() { $searchScopes = Get-SPEnterpriseSearchServiceApplication  | Get-SPEnterpriseSearchCrawlContentSource foreach($searchScope in $searchScopes) { […]