Enable Claims based Auth on a SP2010 website, after it has been provisioned
Posted
by Sahil Malik
on Win Smarts
See other posts from Win Smarts
or by Sahil Malik
Published on Mon, 29 Mar 2010 16:50:31 GMT
Indexed on
2010/03/29
20:54 UTC
Read the original article
Hit count: 765
SharePoint 2010 B2
Ad:: SharePoint 2007 Training in .NET 3.5 technologies (more information). |
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.
© Win Smarts or respective owner