確認每個 User Profile Service 應用程式皆已設定我的網站主機 (SharePoint Server)Verify each User Profile service application has a My Site host configured (SharePoint Server)

摘要:了解如何解決 SharePoint Server 2016 和 SharePoint Server 2013 的 SharePoint 狀況分析器規則「確認每個 User Profile Service 應用程式皆已設定我的網站主機」的問題。Summary: Learn how to resolve the SharePoint Health Analyzer rule "Verify each User Profile service application has a My Site Host configured" in SharePoint Server 2016 and SharePoint Server 2013.

規則名稱: 確認每個 User Profile Service 應用程式皆已設定「我的網站主機」。Rule Name: Verify each User Profile service application has a My Site Host configured.

摘要: 如果沒有「我的網站主機」,使用者將無法使用個人網站或人員設定檔。因此,建議您在建立 User Profile Service 服務應用程式時,也建立 User Profile Service 的「我的網站主機」。Summary: Without a My Site host, end-users are not able to use personal sites or people profiles. Therefore, we recommend that if you create a User Profile Service service application, you also create a My Site host for the User Profile Service.

徵狀: 使用者無法使用「我的網站」及其他人員設定檔功能。Symptoms: My Sites and other people profile features are not available to users.

原因: 建立 User Profile Service 服務應用程式的管理員未同時建立「我的網站主機」。Cause: The administrator who created the User Profile Service service application did not also create a My Site host.

解決方案: 確認已建立「我的網站」網站集合Resolution: Verify that a My Site site collection has been created

解決方案: 使用 Microsoft PowerShell 建立「我的網站主機」與 User Profile Service 服務應用程式的關聯Resolution: Associate the My Site host with a User Profile Service service application by using Microsoft PowerShell

  1. 確認您具備下列成員身分:Verify that you have the following memberships:

    • SQL Server 執行個體上的 securityadmin 固定伺服器角色。securityadmin fixed server role on the SQL Server instance.

    • 所有要更新之資料庫上的 db_owner 固定資料庫角色。db_owner fixed database role on all databases that are to be updated.

    • 正在執行 PowerShell Cmdlet 之所在伺服器上的系統管理員群組。Administrators group on the server on which you are running the PowerShell cmdlets.

      系統管理員可以使用 Add-SPShellAdmin Cmdlet 授與使用 SharePoint Server Cmdlet 的權限。An administrator can use the Add-SPShellAdmin cmdlet to grant permissions to use SharePoint Server cmdlets.

      注意

      如果您不具備上述權限,請連絡安裝程式系統管理員或 SQL Server 系統管理員要求權限。如需 PowerShell 權限的其他資訊,請參閱 Add-SPShellAdminIf you do not have permissions, contact your Setup administrator or SQL Server administrator to request permissions. For additional information about PowerShell permissions, see Add-SPShellAdmin.

  2. 啟動 SharePoint 管理命令介面。Start the SharePoint Management Shell.

  3. 在 PowerShell 命令提示字元中,輸入下列命令:At the PowerShell command prompt, type the following command:

    Set-SPProfileServiceApplication [-Name <UserProfileServiceApplicationName>] -MySiteHostLocation <URL>
    

    其中:Where:

    • <UserProfileServiceApplicationName> 是 User Profile Service 服務應用程式的易記名稱。如果只有一個 User Profile Service 服務應用程式,則不需要指定名稱。<UserProfileServiceApplicationName> is the friendly name of the User Profile Service service application. If you only have one User Profile Service service application, you do not need to specify the name.

    • <URL> 是沒有相關聯範本的空白網站集合 URL。<URL> is URL of an empty site collection that has no templates associated with it.

另請參閱See also

其他資源Other Resources

Set-SPProfileServiceApplicationSet-SPProfileServiceApplication