Powershell SharePoint Kerberos新SPWebApplication

Powershell SharePoint Kerberos新SPWebApplication,sharepoint,powershell,sharepoint-2010,kerberos,Sharepoint,Powershell,Sharepoint 2010,Kerberos,不工作-创建新站点时,是否集成了安全性-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://" + $WebAppHostHea

不工作-创建新站点时,是否集成了安全性-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
这对我有用

$ap = New-SPAuthenticationProvider -UseWindowsIntegratedAuthentication
$ap.DisableKerberos = $false
New-SPWebApplication -Url http://localhost -Port 80  -ApplicationPool "Sharepoint 80" -AuthenticationMethod Kerberos -ApplicationPoolAccount "qatc\spadmin" -Name test -AuthenticationPovider $ap -AuthenticationMethod "Kerberos"
$ap = New-SPAuthenticationProvider -UseWindowsIntegratedAuthentication
$ap.DisableKerberos = $false
New-SPWebApplication -Url http://localhost -Port 80  -ApplicationPool "Sharepoint 80" -AuthenticationMethod Kerberos -ApplicationPoolAccount "qatc\spadmin" -Name test -AuthenticationPovider $ap -AuthenticationMethod "Kerberos"