從使用者設定檔服務應用程式中移除管理員 (SharePoint Server 2010)

 

適用版本: SharePoint Server 2010

上次修改主題的時間: 2011-11-10

伺服器陣列管理員可以從 User Profile Service 應用程式移除服務應用程式管理員。例如,應該從服務應用程式管理員清單中移除離開組織之使用者的帳戶。當不再需要服務應用程式管理員時,也要進行此類移除。如需管理員的詳細資訊,請參閱<選擇管理階層的管理員與擁有者 (SharePoint Server 2010)>。

執行此程序之前,請先確認下列事項:

  • 伺服器陣列中已有執行 User Profile Service 應用程式。

本文內容:

  • 使用管理中心從 User Profile Service 應用程式移除管理員

  • 使用 Windows PowerShell 從 User Profile Service 應用程式移除管理員

使用管理中心從 User Profile Service 應用程式移除管理員

在獨立部署中,通常使用管理中心網站從 User Profile Service 應用程式移除管理員。

使用管理中心從 User Profile Service 應用程式移除管理員

  1. 確認是否具備下列系統管理認證:

    • 若要使用管理中心,執行此程序的使用者帳戶必須是伺服器陣列管理員群組的成員。
  2. 在管理中心網站上,按一下 [應用程式管理] 區段中的 [管理服務應用程式]。

  3. 在服務應用程式清單中,按一下 [User Profile Service 應用程式]。

  4. 在 [服務應用程式] 索引標籤的 [作業] 群組中,按一下 [管理員]。

  5. 在 [User Profile Service 應用程式的管理員] 頁面上,選取使用者或群組帳戶,按一下 [移除],然後按一下 [確定]。

使用 Windows PowerShell 從 User Profile Service 應用程式移除管理員

通常當您需要自動執行工作時,可以使用 Windows PowerShell 從 User Profile Service 應用程式移除管理員,這在企業中很普遍。

使用 Windows PowerShell 從 User Profile Service 應用程式移除管理員

  1. 確認符合下列基本需求:

  2. 在 [開始] 功能表上,按一下 [所有程式]。

  3. 按一下 [Microsoft SharePoint 2010 產品]。

  4. 按一下 [SharePoint 2010 管理命令介面]。

  5. 從 Windows PowerShell 命令提示字元 (即 PS C:\>) 處,輸入下列命令,不帶註解 (//),每條命令單獨佔一行:

    // Get a list of all service applications and their GUIDs
    Get-SPServiceApplication
    
    // Create a variable that contains the guid of the User Profile service application
    // for which you want to remove an administrator
    $serviceapp = Get-SPServiceApplication <guid>
    
    // Create a variable that contains the list of administrators for the User Profile service application
    $security = Get-SPServiceApplicationSecurity $serviceapp -Admin
    
    // Remove the user from the list of service application administrators
    Revoke-SPObjectSecurity $security -Principal <user name> -Rights "Full Control"
    
    // Apply the changes to the User Profile service application
    Set-SPServiceApplicationSecurity $serviceapp -objectSecurity $security -Admin
    

    其中,<guid> 是您要刪除其服務應用程式管理員的 User Profile Service 的 GUID;<使用者名稱> 是您要刪除的管理員。

    有關詳細資訊,請參閱Get-SPServiceApplicationGet-SPServiceApplicationSecurityRevoke-SPObjectSecuritySet-SPServiceApplicationSecurity

    注意

    建議您在執行命令列管理工作時使用 Windows PowerShell。Stsadm 命令列工具已過時,但為與舊版產品相容,仍會隨附提供。

See Also

Concepts

指定 User Profile Service 應用程式的管理 (SharePoint Server 2010)