How to enable or disable “Claims Based Authentication” on Authentication Providers in SharePoint

Categories: PowerShell, SharePoint
#Use SharePoint 2013 Management Shell
#Script PowerShell

#Enable "Claims Based Authentication" on Web Application
$WebApplicationURL = "http://sharepoint"
$setcba = Get-SPWebApplication $WebApplicationURL
$setcba.UseClaimsAuthentication = 1;
$setcba.Update()

#Disable "Claims Based Authentication" and enable "Windows Authentication"
$WebApplicationURL = "http://sharepoint"
$setcba = Get-SPWebApplication $WebApplicationURL
$setcba.UseClaimsAuthentication = 0;
$setcba.Update()
«
»

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    This site uses Akismet to reduce spam. Learn how your comment data is processed.