从用户配置文件服务应用程序中移除管理员 (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 应用程序删除管理员
验证您是否拥有以下管理凭据:
- 若要使用管理中心,执行此过程的用户帐户必须是 Farm Administrators 组的成员。
在管理中心网站上的“应用程序管理”部分,单击“管理服务应用程序”。
在服务应用程序的列表中,单击“User Profile Service 应用程序”。
在“服务应用程序”选项卡上的“操作”组中,单击“管理员”。
在“User Profile Service 应用程序的管理员”页上,选择用户或组帐户,单击“删除”,然后单击“确定”。
使用 Windows PowerShell 从 User Profile Service 应用程序删除管理员
通常,当您需要自动执行任务时,可以使用 Windows PowerShell 从 User Profile Service 应用程序删除管理员,这在企业中很普遍。
使用 Windows PowerShell 从 User Profile Service 应用程序删除管理员
验证您是否满足以下最低要求:
- 请参阅 Add-SPShellAdmin。
在“开始”菜单上,单击“所有程序”。
单击“Microsoft SharePoint 2010 产品”。
单击“SharePoint 2010 Management Shell”。
从 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;<user name> 是您要删除的管理员。
有关详细信息,请参阅 Get-SPServiceApplication、Get-SPServiceApplicationSecurity、Revoke-SPObjectSecurity 和 Set-SPServiceApplicationSecurity。
备注
我们建议您在执行命令行管理任务时使用 Windows PowerShell。Stsadm 命令行工具已被弃用,仍然包含该工具是为了支持与之前产品版本的兼容性。