Enabling or Disabling the Claims Based Authencation using PowerShell

Advertisement
Web application is already provisioned with classic,there is no GUI option to change the classic mode to claims but using power shell we can do it.

In Central Admin->Application Management->Manage Web application

Select the particular web application in top ribbon click on the Authentication Providers,there we can see the membership provider name Claims or Classic.

     

Now i am changing the classic to claims using the below power shell

$claims = Get-SPWebApplication "http://DotNetSharePoint:23456/"
$claims.UseClaimsAuthentication = 1;
$claims.Update()

Again i am changing the claims to classic using the below power shell

                               
$claims = Get-SPWebApplication "http://DotNetSharePoint:23456/"
$claims.UseClaimsAuthentication = 0;
$claims.Update()

Finally go verify it once for conformation.
Advertisements
SHARE

Lakshmi Tulasi Jasti

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a comment