確認每個 User Profile Service 應用程式皆已設定我的網站主機 (SharePoint Server)

適用于:yes-img-132013 yes-img-16 2016yes-img-192019 yes-img-se訂閱版本 no-img-sopMicrosoft 365 中的 SharePoint

規則名稱: 確認每個 User Profile Service 應用程式皆已設定「我的網站主機」。

摘要: 如果沒有「我的網站主機」,使用者將無法使用個人網站或人員設定檔。 因此,建議您在建立 User Profile Service 服務應用程式時,也建立 User Profile Service 的「我的網站主機」。

徵狀: 使用者無法使用「我的網站」及其他人員設定檔功能。

原因: 建立 User Profile Service 服務應用程式的管理員未同時建立「我的網站主機」。

解決方案: 確認已建立「我的網站」網站集合

解決方案: 使用 Microsoft PowerShell 建立「我的網站主機」與 User Profile Service 服務應用程式的關聯

  1. 確認您具備下列成員身分:
  • SQL Server 執行個體上的 securityadmin 固定伺服器角色。

  • 所有要更新之資料庫上的 db_owner 固定資料庫角色。

  • 正在執行 PowerShell Cmdlet 之所在伺服器上的系統管理員群組。

    系統管理員可以使用 Add-SPShellAdmin Cmdlet 授與使用 SharePoint Server Cmdlet 的權限。

    注意事項

    [!附註] 如果您不具備上述權限,請連絡安裝程式系統管理員或 SQL Server 系統管理員要求權限。 如需 PowerShell 權限的其他資訊,請參閱 Add-SPShellAdmin

  1. 啟動 SharePoint 管理命令介面。

  2. 在 PowerShell 命令提示字元中,輸入下列命令:

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

    其中:

    • <UserProfileServiceApplicationName> 是 User Profile Service 服務應用程式的易記名稱。 如果只有一個 User Profile Service 服務應用程式,則不需要指定名稱。

    • <URL> 是沒有相關聯範本的空白網站集合 URL。

另請參閱

其他資源

Set-SPProfileServiceApplication