在维护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。
感谢阅读。