Enable/Disable Search incrmental crawl in Remote server


hi all,

can me..need write script enable/disable search incrementalcrawl remote server..

i need run script remote server enable/disale crawl..

please me..

thanks in advance

i don't have access sharepoint site test or give solid working answer, here's link might help:

http://technet.microsoft.com/en-us/library/jj219802(v=office.15).aspx

here's code disable continuous crawl.  the cmdlets might support targeting remote servers, , i'm guessing there might me similar method incremental crawl:

$ssa =  get-spenterprisesearchserviceapplication $spcontentsources = $ssa | get-spenterprisesearchcrawlcontentsource | {$_.type -eq "sharepoint"}  foreach ($cs in $spcontentsources)  {    $cs.enablecontinuouscrawls = $false    $cs.update()  }


i hope post has helped!



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

WIMMount (HSM) causing cluster storage to go redirected (2012r2 DC)

Failed to delete the test record dcdiag-test-record in zone test.com

Azure MFA with Azure AD and RDS