List all Relying Party Trusts that use SHA256 or SHA1 in ADFS

Here’s a quick one-liner to fetch a list of all relying part trusts that use the SHA256 hashing algorithm.

Get-AdfsRelyingPartyTrust | Where {$_.SignatureAlgorithm -Like “” | FT Name

If you want to get a list of all RPT’s using SHA1, replace the URL with “”.

Hope this helps! 🙂

About the author