Add-SPPluggableSecurityTrimmer

将可插入的安全修整程序添加到配置文件服务应用程序代理。

语法

Add-SPPluggableSecurityTrimmer
   -UserProfileApplicationProxyId <Guid>
   -PlugInId <Int32>
   [-AssignmentCollection <SPAssignmentCollection>]
   [-Confirm]
   [-QualifiedTypeName <String>]
   [-WhatIf]
   [-CustomProperties <NameValueCollection>]
   [<CommonParameters>]

说明

使用Add-SPPluggableSecurityTrimmer cmdlet 将指定的可插入式安全修整程序添加到用户配置文件服务应用程序代理。

有关适用于 SharePoint 产品的 Windows PowerShell 的权限和最新信息,请参阅 SharePoint Server cmdlet

示例

----------------EXAMPLE 1--------------------

$proxy = Get-SPServiceApplicationProxy | ? {$_.TypeName -eq 'User Profile Service Application Proxy'}
Add-SPPluggableSecurityTrimmer -UserProfileApplicationProxyId $proxy.Id -PlugInId 0

此示例添加与用户配置文件服务应用程序代理相关的可插入式安全修整程序。

参数

-Confirm

执行命令前,看到确认提示。 有关详细信息,请键入以下命令:get-help about_commonparameters

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-CustomProperties

{{Fill CustomProperties Description}}

Type:NameValueCollection
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-PlugInId

Pluggable Security Trimmer 的索引必须是大于等于零的整数值。

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-QualifiedTypeName

指定实现可插入式安全修整程序的类的限定类型名称。

该类型必须是有效的限定类型名称,格式为 Microsoft.Office.Server.SocialData.SocialSecurityTrimmer、Microsoft.Office.Server.UserProfiles、Version=14.0.0.0、Culture=neutral、PublicKeyToken=71e9bce111e9429c。

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-UserProfileApplicationProxyId

指定要向其添加可插入的安全修整程序的用户配置文件服务应用程序代理的 ID。

键入的值必须为有效 GUID,格式为 12345678-90ab-cdef-1234-567890bcdefgh。

Type:Guid
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-WhatIf

显示一条描述命令作用的消息,而不执行命令。 有关详细信息,请键入以下命令:get-help about_commonparameters

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-工作分配

Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used.

When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur.

Type:SPAssignmentCollection
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition