SharePoint 2013 – Could not connect to Search HostController error


When i try to move the Search crawler and other component to different server i got this error. The below powershell command solved the issue

$acl = Get-Acl HKLM:\System\CurrentControlSet\Control\ComputerName       

$person = [System.Security.Principal.NTAccount] "Users"

$access = [System.Security.AccessControl.RegistryRights]::FullControl

$inheritance = [System.Security.AccessControl.InheritanceFlags] "ContainerInherit, ObjectInherit"

$propagation = [System.Security.AccessControl.PropagationFlags]::None        

$type = [System.Security.AccessControl.AccessControlType]::Allow        

$rule = New-Object System.Security.AccessControl.RegistryAccessRule($person, $access, $inheritance, $propagation, $type)        

$acl.AddAccessRule($rule)        

Set-Acl HKLM:\System\CurrentControlSet\Control\ComputerName $acl

$sh = Get-SPServiceInstance | ? {$_.TypeName -eq "Search Host Controller Service"}

$sh.Unprovision()        

$sh.Provision($true)

 

 

Source http://mmman.itgroove.net/2012/12/search-host-controller-service-in-starting-state-sharepoint-2013-8/

Thanks

 

 

Deleted any photos? Easily fix it using this Product

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s