SharePoint: Setup claims authentication through PowerShell


Following script updates the web application to use Claims based authentication:

$webApplicationUrl = "http://intranet"
$webapp= Get-SPWebApplication $webApplicationUrl 
$webapp.UseClaimsAuthentication
$webapp.UseClaimsAuthentication=$True
$webapp.Update()
$webapp.ProvisionGlobally()
iisreset
profile for Nadeem Yousuf at SharePoint Stack Exchange, Q&A for SharePoint enthusiasts

+