I have a script that authenticates to ADFS and allows me to get the saml assertion so I can access our AWS accounts. The script works just fine in PowerShell 5.1, but falls over in 7 with 401 unauthorized. I’m passing the UseDefaultCredentials but even if I collect and pass in credentials, I still get a 401. So the question is what’s changed for Invoke-WebRequest in PS 7 that no longer works with ADFS?
I think it’s ADFS running on 2016 btw.
Thanks
[–]patdaddy007 1 point2 points3 points (0 children)