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

By |2018-07-13T14:29:39+00:00July 13th, 2018|PowerShell, Windows, Windows Server|0 Comments

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 “http://www.w3.org/2001/04/xmldsig-more#rsa-sha256” | FT Name

If you want to get a list of all RPT’s using SHA1, replace the URL with “http://www.w3.org/2000/09/xmldsig#rsa-sha1”.

Hope this helps! πŸ™‚

Leave A Comment

like what you see? 

Sign-up to our newsletter and never miss out on the latest blogs, events and tech news from the world of risual
SUBSCRIBE!
Give it a try, you can unsubscribe anytime.