PowerShell Logo Small

Set-ADClaimTransformPolicy



This is the built-in help made by Microsoft for the command 'Set-ADClaimTransformPolicy', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Sets the properties of a claims transformation policy in Active Directory.

SYNTAX


Set-ADClaimTransformPolicy [-Identity] <ADClaimTransformPolicy> [-Add <Hashtable>] [-AuthType {Negotiate | Basic}] [-Clear <String[]>] [-Credential <PSCredential>]
[-Description <String>] [-PassThru] [-ProtectedFromAccidentalDeletion <Boolean>] [-Remove <Hashtable>] [-Replace <Hashtable>] [-Server <String>] -AllowAllExcept
<ADClaimType[]> [-Confirm] [-WhatIf] [<CommonParameters>]
Set-ADClaimTransformPolicy [-Identity] <ADClaimTransformPolicy> [-Add <Hashtable>] [-AuthType {Negotiate | Basic}] [-Clear <String[]>] [-Credential <PSCredential>]
[-Description <String>] [-PassThru] [-ProtectedFromAccidentalDeletion <Boolean>] [-Remove <Hashtable>] [-Replace <Hashtable>] [-Server <String>] -DenyAllExcept
<ADClaimType[]> [-Confirm] [-WhatIf] [<CommonParameters>]
Set-ADClaimTransformPolicy [-Identity] <ADClaimTransformPolicy> [-Add <Hashtable>] [-AuthType {Negotiate | Basic}] [-Clear <String[]>] [-Credential <PSCredential>]
[-Description <String>] [-PassThru] [-ProtectedFromAccidentalDeletion <Boolean>] [-Remove <Hashtable>] [-Replace <Hashtable>] [-Server <String>] -DenyAll [-Confirm]
[-WhatIf] [<CommonParameters>]
Set-ADClaimTransformPolicy [-Identity] <ADClaimTransformPolicy> [-Add <Hashtable>] [-AuthType {Negotiate | Basic}] [-Clear <String[]>] [-Credential <PSCredential>]
[-Description <String>] [-PassThru] [-ProtectedFromAccidentalDeletion <Boolean>] [-Remove <Hashtable>] [-Replace <Hashtable>] [-Rule <String>] [-Server <String>] [-Confirm]
[-WhatIf] [<CommonParameters>]
Set-ADClaimTransformPolicy [-Identity] <ADClaimTransformPolicy> [-Add <Hashtable>] [-AuthType {Negotiate | Basic}] [-Clear <String[]>] [-Credential <PSCredential>]
[-Description <String>] [-PassThru] [-ProtectedFromAccidentalDeletion <Boolean>] [-Remove <Hashtable>] [-Replace <Hashtable>] [-Server <String>] -AllowAll [-Confirm]
[-WhatIf] [<CommonParameters>]
Set-ADClaimTransformPolicy [-AuthType {Negotiate | Basic}] [-Credential <PSCredential>] [-PassThru] [-Server <String>] -Instance <ADClaimTransformPolicy> [-Confirm]
[-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Set-ADClaimTransformPolicy cmdlet can be used to set the properties of a claims transformation policy in Active Directory. A claims transformation policy object contains
a set of rules authored in the transformation rule language.



<

RELATED LINKS


Online Version: http://go.microsoft.com/fwlink/p/?linkid=291112

REMARKS

<

Examples


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

PS C:\>Set-ADClaimTransformPolicy -Identity DenyAllPolicy -DenyAll



This command sets the transformation rule on the claims transformation policy named DenyAllPolicy to deny all claims, both those that are sent as well as those that are
received.




-------------------------- EXAMPLE 2 --------------------------

PS C:\>Set-ADClaimTransformPolicy -Identity AllowAllExceptCompanyAndDepartmentPolicy -AllowAllExcept Company,Department



This command sets the transformation rule on the claims transformation policy named AllowAllExceptCompanyAndDepartmentPolicy to allow all claims to be sent or received
except for the claims Company and Department.




-------------------------- EXAMPLE 3 --------------------------

PS C:\>Set-ADClaimTransformPolicy -Identity HumanResourcesToHrPolicy -Rule 'C1:[Type=="ad://ext/Department:88ce6e1cc00e9524", Value=="Human Resources", ValueType=="string"]
=> issue(Type=C1.Type, Value="HR", ValueType=C1.ValueType);'



This command sets the transformation rule on the claims transformation policy named HumanResourcesToHrPolicy to transform the value Human Resources to HR in the claim
ad://ext/Department:88ce6e1cc00e9524.




-------------------------- EXAMPLE 4 --------------------------

PS C:\>$rule = Get-Content -Path C:\rule.txt
PS C:\> Set-ADClaimTransformPolicy MyRule -Rule $rule



This command sets the transformation rule on the claims transformation policy named MyRule with the rule specified in C:\rule.txt.