Saturday 2 April 2011

How to change Authentication type of the existing SharePoint web app?

When you create a new SharePoint web application in Central Administration you can choose from Classic Mode and Claim Based Authentication. After the application is created there is no way how  to change it in Central Administration. Nevertheless you can still do it in PowerShell:

$app = Get-SPWebApplication [web app url, e.g. http://portal]
$app.UseClaimsAuthentication = "True"
$app.Update()

That's all!

3 comments:

  1. $app.UseClaimAuthentication is miss-spelled ('s' is missing). It should be:

    $app.UseClaimsAuthentication = "True"

    ReplyDelete
  2. Replies
    1. how can I tell what the current app is set to

      Delete