Removing SPTrustedIdentityTokenIssuer

I’ve been experimenting a lot with Sharepoint claims authentication, ADFS and custom STS.  Doing some cool stuff like deploying cross federation authentication, hosting a custom STS in a sharepoint site and using it directly from another sharepoint site leaves a lot of unwanted stuff on you server

So now that my development environment is plastered with half working sharepoint site collections, test certificates and Trusted identity tokken issuers some tidying up is highly needed.

This post is merely meant as a reminder to clean up the mess of the test !

For removing the Trusted identity tokken issuers just start up PowerShell for Sharepoint and write

Remove-SPTrustedIdentityTokenIssuer "Name of your STS"

The call takes several other parameters like a -Whatif command that displays a message that describes the effect of the command instead of executing the command. I like this -whatif ! Good for double checking !!

Of course if you are not so radical as I am but just want to change some of the elements of your STS you can use the following command:



Happy cleaning!!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: