SharePoint 2013 Configure Search Services

//Provision Usage App $UP = Get-SPServiceApplicationProxy | where {$_.TypeName -like “Usage*”} $UP.Provision() //Starts the Services $hostA = Get-SPEnterpriseSearchServiceInstance -Identity “spapp” Start-SPEnterpriseSearchServiceInstance -Identity $hostA //Verify They’re started Get-SPEnterpriseSearchServiceInstance -Identity $hostA //Results //Get-SPEnterpriseSearchServiceInstance -Identity $hostA //TypeName : SharePoint Server Search //Description : Index content and serve search queries //Id : 82ce8815-ecbd-4cf3-a98e-33f20bd86039 //Server : SPServer Name=myserver1.example.com //Service : SearchService Name=OSearch15 //Role : None //Status : Online //Returns Search Server Topology $ssa = Get-SPEnterpriseSearchServiceApplication…

There was a problem deleting Web site “SiteName”. Sites that have subsites or certain apps can’t be deleted. Please try again after deleting all subsites and removing the apps.

Keep getting error when I try to delete a site with sub sites. This PowerShell script works well. # Completely deletes the specified Web (including all subsites) function RemoveSPWebRecursively( [Microsoft.SharePoint.SPWeb] $web) { Write-Debug “Removing site ($($web.Url))…” $subwebs = $web.GetSubwebsForCurrentUser() foreach($subweb in $subwebs) { RemoveSPWebRecursively($subweb) $subweb.Dispose() } $DebugPreference = “SilentlyContinue” Remove-SPWeb $web -Confirm:$false $DebugPreference = “Continue” } $DebugPreference = “SilentlyContinue” $web = Get-SPWeb “http://sp2013/programs” $DebugPreference = “Continue” If ($web -ne $null)…

Event Handlers SharePoint 2010

This Tutorial can come in pretty handy. http://www.sharepointbriefing.com/spcode/article.php/3872616/Using-the-Event-Handler-in-SharePoint-2010.htm