不工作 - 创建新站点时,是集成安全性 - NTLM:
$ap = (New-SPAuthenticationProvider)
$ap | fl
$ap.DisableKerberos = $false
$ap | fl *
Start-Sleep -s 10
New-SPWebApplication -Name $WebAppName -Port $WebAppPort -HostHeader $WebAppHostHeader -URL ("http://" + $WebAppHostHeader) -ApplicationPool $WebAppAppPool -ApplicationPoolAccount (Get-SPManagedAccount $WebAppAppPoolAccount) -DatabaseName $WebAppDatabaseName -DatabaseServer $WebAppDatabaseServer –AuthenticationProvider $ap -AuthenticationMethod Kerberos