Remove-SPClaimTypeMapping

删除安全令牌服务 (STS) 身份提供程序的声明类型映射规则。

语法

Remove-SPClaimTypeMapping
      [-Identity] <SPClaimMappingPipeBind>
      [-AssignmentCollection <SPAssignmentCollection>]
      [-Confirm]
      -TrustedIdentityTokenIssuer <SPTrustedIdentityTokenIssuerPipeBind>
      [-WhatIf]
      [<CommonParameters>]

说明

Remove-SPClaimTypeMapping cmdlet 从场信任 STS 标识提供者中删除声明类型映射规则。

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

示例

--------------------示例-------------------------

Get-SPTrustedIdentityTokenIssuer "LiveIDSTS" | Remove-SPClaimTypeMapping "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"

本示例从 LiveIDSTS 标识提供者中删除声明类型映射 emailaddress。

参数

-Confirm

提示你在运行 cmdlet 之前进行确认。

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

-Identity

指定要删除的声明映射。

该类型必须是有效的 GUID,格式为 12345678-90ab-cdef-1234-567890bcdefgh;或声明映射规则的有效名称 (例如,Email) ;或有效的 SPClaimTypeMapping 对象的实例。

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

-TrustedIdentityTokenIssuer

指定令牌颁发者或有效的 SPTrustedIdentityTokenIssuerPipeBind 对象。

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

-WhatIf

显示在 cmdlet 运行时发生的情况。 此 cmdlet 未运行。

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