利用PowerShell更改Search Service Account和删除旧的Search Service topology

博客地址:http://blog.csdn.net/shelleyliu0415

 

很多朋友喜欢用PowerShell来维护和管理SharePoint,这里,给大家介绍一下如何用PowerShell更改Search Service Account以及删除旧的SearchService topology

 

利用PowerShell更改Search Service Account

 

  • $password = Read-Host –AsSecureString Password

 


 

  • Set-SPEnterpriseSearchService -IgnoreSSLWarnings $true -ServiceAccount domain\user -ServicePassword $password

 


 

注意:

 

  1. 第一步填写的password为步骤2要更改的Search Service account对应的Password
  2. Set-SPEnterpriseSearchService是固定的命令参数,不可更改为Service Applicationname
  3. 此处更改的仅仅是Search Service Account,并非是Search Service Application Poolaccount,该用户是Domain user即可,无需有SQL ServerDB creatorSecurity admin的权限。
  4. 运用此命令,将会把改SharePoint farm下所有的Search ServiceAccount更改为该用户。

 

删除旧的SearchService topology

 

  • $ssa = Get-SPEnterpriseSearchServiceApplication -Identity "SSA Name"

 


 

  • Get-SPEnterpriseSearchTopology -SearchApplication $ssa

 

利用PowerShell更改Search Service Account和删除旧的Search Service topology_第1张图片

 

  • Remove-SPEnterpriseSearchTopology -SearchApplication $ssa -Identity 231dfd08-9ab9-4c98-bc53-903ea9f4fb80

 

利用PowerShell更改Search Service Account和删除旧的Search Service topology_第2张图片

 

 

注意:

 

  1. 步骤2将得到整个SharePoint farm下的Search ServiceTopology ID,记录要删除的Search ServiceID,第三步删除动作,Identity需要填写对应的Topology ID

 

 

谢谢大家阅读!

你可能感兴趣的:(SharePoint,2013,IT,Professional,PowerShell)