Enabling or Disabling Claims Based Authentication
July 23, 2010 5 Comments
If you have already provisioned a Web Application then it may not be immediately obvious how to change the authentication over to Claims (or revert back to Classic) as this cannot be done within the GUI and can only be done within PowerShell.
Note : To do this you will need to load PowerShell and the SharePoint 2010 snap-in.
To Enable Claims :
$webApp = Get-SPWebApplication "http://webapplicationurl" $webApp.UseClaimsAuthentication = 1; $webApp.Update()
And to revert back to Classic mode authentication just change the 1 to a 0 :
$webApp = Get-SPWebApplication "http://webapplicationurl" $webApp.UseClaimsAuthentication = 0; $webApp.Update()
Fairly easy, but not immediately obvious

Hello,
I just enabled the claims auth. and then revert to classic auth. and now when i try to change the user logged in (sign in with a different user) it gives an “Unexpected error”……
Can you help me please?
Marc,
You can also use True or False instead of 0 or 1.
Don’t forget to do a $webapp.migrateusers() to finish it off
Pingback: 2010 in review « Mark Rhodes
Nice! I also had to remove the “membership” and “roleManager” nodes from the web.config (make sure you backup before changing):
This didn’t work for me. I had to delete and recreate the web app and then reattached the content dbs.