当前位置:网站首页 > 更多 > 玩电脑 > 正文

[玩转系统] 如何更改 SharePoint 2016 搜索中的默认内容访问帐户?

作者:精品下载站 日期:2024-12-14 14:19:35 浏览:13 分类:玩电脑

如何更改 SharePoint 2016 搜索中的默认内容访问帐户?


完成搜索服务应用程序的创建后,下一步是配置爬网组件用于爬网内容源(例如 SharePoint 内容)的默认内容访问帐户。此爬网帐户将对所有搜索内容源(例如 SharePoint Web 应用程序)具有读取访问权限。

设置默认内容访问帐户

您可以从 SharePoint 管理中心将搜索爬网帐户更改为:

  1. SharePoint 中央管理 >> 应用程序管理 >> 管理服务应用程序。
  2. 从服务应用程序列表中,选择搜索服务应用程序。
  3. 在“搜索管理”页面上,单击已为默认内容访问帐户配置的帐户。
  4. 提供新的爬网帐户用户名和密码。

    [玩转系统] 如何更改 SharePoint 2016 搜索中的默认内容访问帐户?

内容访问帐户应该是常规域帐户。我们不应使用 SharePoint 设置或场管理员帐户来爬网内容,因为这会导致安全调整错误。

PowerShell 在 SharePoint 2016 中更改搜索爬网帐户

如果要使用 PowerShell 更改 SharePoint 2016 搜索服务应用程序的默认内容访问帐户,请使用以下脚本:


Add-PSSnapin Microsoft.SharePoint.Powershell -ErrorAction SilentlyContinue

#Set Default content access account
$AccountID = "Crescent\SP16_Crawl"
$Password = Read-Host -AsSecureString  

#Get Search service application
$SearchInstance = Get-SPEnterpriseSearchServiceApplication

#Set default content access account for crawl
Set-SPEnterpriseSearchServiceApplication -Identity $SearchInstance -DefaultContentAccessAccountName $AccountID -DefaultContentAccessAccountPassword $Password

默认内容访问帐户的权限:
当您更改搜索爬网帐户时,SharePoint 会自动创建一个对所有 Web 应用程序具有“完全读取”权限的 Web 应用程序策略!

您需要 登录账户 后才能发表评论

取消回复欢迎 发表评论:

关灯