Enable Claims based Auth on a SP2010 website, after it has been provisioned

Posted on 3/29/2010 @ 4:50 PM in #SharePoint by | Feedback | 1006 views

When you provision a web app in SP2010, you can choose it to use Claims Based Auth or Classic Auth right through the GUI.  However, after you have provisioned a web app, there is no GUI to switch from Classic to Claims based. So the below powershell script will let you convert a SP2010 website to claims based auth after it has been provisioned.

   1: $w = Get-SPWebApplication "http://sp2010"
   2: $w.UseClaimsAuthentication = "True";
   3: $w.Update()

The user running the above script should be a member of the SharePoint_Shell_Access role on the config DB, and a member of the WSS_ADMIN_WPG local group.

Sound off but keep it civil:

Older comments..

On 6/3/2010 4:05:48 PM Neerav said ..
The problem we faced after running this was that the web.config wasn't updated with the appropriate entries to enable claims based auth for the web app. Had to do it manually.