We have a number of SP 2010 applications and each is bound to an STS via the Trusted Identity Provider check-box when we create the web application.
However, when we want to remove the Trusted Provider so that we can rerun the script again with some changes, you get the message:
Remove-SPTrustedIdentityTokenIssuer : The trusted login provider is in use and cannot be deleted.
We then have to uncheck the box on all the applications that use the provider, remove the provider, rerun the script and then check all the boxes again. This becomes a pain when you have a lot of applications!
Is there an easier way?











