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).

CmdletDescription
Add-ADFSAttributeStoreAdds an attribute store to the Federation Service.
Add-ADFSCertificateAdds a new certificate to the Federation Service for signing, decrypting, or securing communications.
Add-ADFSClaimDescriptionAdds a claim description to the Federation Service.
Add-ADFSClaimsProviderTrustAdds a new claims provider trust to the Federation Service.
Add-ADFSRelyingPartyTrustAdds a new relying party trust to the Federation Service.
Disable-ADFSClaimsProviderTrustDisables a claims provider trust in the Federation Service.
Disable-ADFSEndpointDisables an endpoint of the Federation Service.
Disable-ADFSRelyingPartyTrustDisables a relying party trust of the Federation Service.
Enable-ADFSClaimsProviderTrustEnables a claims provider trust in the Federation Service.
Enable-ADFSEndpointEnables an endpoint in the Federation Service.
Enable-ADFSRelyingPartyTrustEnables a relying party trust of the Federation Service.
Get-ADFSAttributeStoreGets the attribute stores of the Federation Service.
Get-ADFSCertificateGets the certificates that are in the Federation Service.
Get-ADFSClaimDescriptionGets claim descriptions that are in the Federation Service.
Get-ADFSClaimsProviderTrustGets the claims provider trusts in the Federation Service.
Get-ADFSEndpointGets the endpoints in the Federation Service.
Get-ADFSPropertiesGets the properties of the Federation Service.
Get-ADFSProxyPropertiesGets the properties of the federation server proxy.
Get-ADFSRelyingPartyTrustGets the relying party trusts of the Federation Service.
Get-ADFSSyncPropertiesGets the configuration database synchronization properties of the Federation Service.
New-ADFSClaimRuleSetCreates a new set of claim rules.
New-ADFSContactPersonCreates a new contact person object.
New-ADFSOrganizationCreates a new organization information object.
New-ADFSSamlEndpointCreates a new SAML protocol endpoint object.
Remove-ADFSAttributeStoreRemoves an attribute store from the Federation Service.
Remove-ADFSCertificateRemoves a certificate from the Federation Service.
Remove-ADFSClaimDescriptionRemoves a claim description from the Federation Service.
Remove-ADFSClaimsProviderTrustRemoves a claims provider trust from the Federation Service.
Remove-ADFSRelyingPartyTrustRemoves a relying party trust from the Federation Service.
Revoke-ADFSProxyTrustRevokes all proxy trust for the Federation Service.
Set-ADFSAttributeStoreSets the properties of the attribute store.
Set-ADFSCertificateSets the properties of an existing certificate that the Federation Service uses to sign, decrypt, or secure communications.
Set-ADFSCertSharingContainerSets the account that is used for sharing managed certificates in a federation server farm.
Set-ADFSClaimDescriptionSets the properties of an existing claim description.
Set-ADFSClaimsProviderTrustSets the properties of a claims provider trust.
Set-ADFSEndpointSets the properties of a Federation Service endpoint.
Set-ADFSPropertiesSets the properties of the Federation Service.
Set-ADFSProxyPropertiesSets the properties of the federation server proxy.
Set-ADFSRelyingPartyTrustSets the properties of a relying party trust.
Set-ADFSSyncPropertiesSets the properties of the database synchronization engine for the federation server farm.
Update-ADFSCertificateUpdates the certificates of the Federation Service.
Update-ADFSClaimsProviderTrustUpdates the claims provider trust from federation metadata.
Update-ADFSRelyingPartyTrustUpdates the relying party trust from federation metadata.

Leave a Reply

Scroll to Top