Thursday, 14 June 2012

Migrate from Classic-Mode to Claims-Based Authentication

To convert from classic-mode to claims-based authentication in SharePoint:

1. Start SharePoint 2010 Management Shell as administrator:

2. Type the following command(seperate each line with a linebreak):

$WebAppName = "http:// yourWebAppUrl"
$account = "yourDomain\yourUser"
$wa = get-SPWebApplication $WebAppName

Set-SPwebApplication $wa -AuthenticationProvider (New-SPAuthenticationProvider) -Zone Default

You might have to reset IIS using iireset.

Now you’ll have the web application set to “claims” authentication.

To change it back to “Classic” follow this steps:

1. Start SharePoint 2010 Management Shell as administrator:

2. Type the following command(seperate each line with a linebreak):

$WebAppName = http:// yourWebAppUrl

$webApp.UseClaimsAuthentication = $false;

$webApp.Update()


 Now take a look in Central Administration and and see that the authentication provider is changed back to “Windows”:

No comments:

Post a Comment