AD FS 2.0 Cmdlets
For example, to display the federation service properties, in a little more verbose way than the Federation Service Properties window of the GUI:
Get-AdfsProperties
These properties can be updated, with ‘Set-AdfsProperties’ and the whole configuration can be made with PowerShell like managing Relying Parties, certificates, endpoints, etc.
But first things first, before using these cmdlets, we’ve got to load the right module:
Add-PSSnapin Microsoft.Adfs.PowerShell
Here’s the full list of available cmdlets for AD DFS 2.0 (nothing extraodinary here, this is just a mirror of the official Microsoft listing available here).
Cmdlet | Description |
---|---|
Add-ADFSAttributeStore | Adds an attribute store to the Federation Service. |
Add-ADFSCertificate | Adds a new certificate to the Federation Service for signing, decrypting, or securing communications. |
Add-ADFSClaimDescription | Adds a claim description to the Federation Service. |
Add-ADFSClaimsProviderTrust | Adds a new claims provider trust to the Federation Service. |
Add-ADFSRelyingPartyTrust | Adds a new relying party trust to the Federation Service. |
Disable-ADFSClaimsProviderTrust | Disables a claims provider trust in the Federation Service. |
Disable-ADFSEndpoint | Disables an endpoint of the Federation Service. |
Disable-ADFSRelyingPartyTrust | Disables a relying party trust of the Federation Service. |
Enable-ADFSClaimsProviderTrust | Enables a claims provider trust in the Federation Service. |
Enable-ADFSEndpoint | Enables an endpoint in the Federation Service. |
Enable-ADFSRelyingPartyTrust | Enables a relying party trust of the Federation Service. |
Get-ADFSAttributeStore | Gets the attribute stores of the Federation Service. |
Get-ADFSCertificate | Gets the certificates that are in the Federation Service. |
Get-ADFSClaimDescription | Gets claim descriptions that are in the Federation Service. |
Get-ADFSClaimsProviderTrust | Gets the claims provider trusts in the Federation Service. |
Get-ADFSEndpoint | Gets the endpoints in the Federation Service. |
Get-ADFSProperties | Gets the properties of the Federation Service. |
Get-ADFSProxyProperties | Gets the properties of the federation server proxy. |
Get-ADFSRelyingPartyTrust | Gets the relying party trusts of the Federation Service. |
Get-ADFSSyncProperties | Gets the configuration database synchronization properties of the Federation Service. |
New-ADFSClaimRuleSet | Creates a new set of claim rules. |
New-ADFSContactPerson | Creates a new contact person object. |
New-ADFSOrganization | Creates a new organization information object. |
New-ADFSSamlEndpoint | Creates a new SAML protocol endpoint object. |
Remove-ADFSAttributeStore | Removes an attribute store from the Federation Service. |
Remove-ADFSCertificate | Removes a certificate from the Federation Service. |
Remove-ADFSClaimDescription | Removes a claim description from the Federation Service. |
Remove-ADFSClaimsProviderTrust | Removes a claims provider trust from the Federation Service. |
Remove-ADFSRelyingPartyTrust | Removes a relying party trust from the Federation Service. |
Revoke-ADFSProxyTrust | Revokes all proxy trust for the Federation Service. |
Set-ADFSAttributeStore | Sets the properties of the attribute store. |
Set-ADFSCertificate | Sets the properties of an existing certificate that the Federation Service uses to sign, decrypt, or secure communications. |
Set-ADFSCertSharingContainer | Sets the account that is used for sharing managed certificates in a federation server farm. |
Set-ADFSClaimDescription | Sets the properties of an existing claim description. |
Set-ADFSClaimsProviderTrust | Sets the properties of a claims provider trust. |
Set-ADFSEndpoint | Sets the properties of a Federation Service endpoint. |
Set-ADFSProperties | Sets the properties of the Federation Service. |
Set-ADFSProxyProperties | Sets the properties of the federation server proxy. |
Set-ADFSRelyingPartyTrust | Sets the properties of a relying party trust. |
Set-ADFSSyncProperties | Sets the properties of the database synchronization engine for the federation server farm. |
Update-ADFSCertificate | Updates the certificates of the Federation Service. |
Update-ADFSClaimsProviderTrust | Updates the claims provider trust from federation metadata. |
Update-ADFSRelyingPartyTrust | Updates the relying party trust from federation metadata. |