SharePoint - 使用Powershell修改Web Application Authentication

Posted Kianteck

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了SharePoint - 使用Powershell修改Web Application Authentication相关的知识,希望对你有一定的参考价值。

在维护SharePoint过程中,有需求要调整Web Application的authentication,因为web application的数量比较多,就需要考虑通过command实现。

具体如下:

1. 使用administrator打开SharePoint Management Shell;

2. 执行下面command;

$a = Get-SPWebApplication "http://testapp.contoso.com/"

$a.UseClaimsAuthentication = 0;

$a.Update()

其中$a.UseClaimsAuthentication = 0表示修改web application的authentication为Classic Mode Authentication,value等于1表示web application设置为Claims Based Authentication。

感谢阅读。

 

以上是关于SharePoint - 使用Powershell修改Web Application Authentication的主要内容,如果未能解决你的问题,请参考以下文章