Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sharepoint 从迁移的SP2010->2013 Web应用拒绝访问_Sharepoint_Powershell_Sharepoint 2010_Sharepoint 2013 - Fatal编程技术网

Sharepoint 从迁移的SP2010->2013 Web应用拒绝访问

Sharepoint 从迁移的SP2010->2013 Web应用拒绝访问,sharepoint,powershell,sharepoint-2010,sharepoint-2013,Sharepoint,Powershell,Sharepoint 2010,Sharepoint 2013,我已将web应用程序的内容数据库从SP2010迁移到SP2013。迁移完成后,我完全被锁定在web应用程序之外。导航到根网站集时,每次都会提示我输入被拒绝的凭据。我尝试作为服务器场管理员和网站集管理员登录的用户 我已尝试使用PowerShell来访问这也是迁移过程的一部分: $account = "yourDomain\yourUser" $account = (New-SPClaimsPrincipal -identity $account -identitytype 1).ToEncoded

我已将web应用程序的内容数据库从SP2010迁移到SP2013。迁移完成后,我完全被锁定在web应用程序之外。导航到根网站集时,每次都会提示我输入被拒绝的凭据。我尝试作为服务器场管理员和网站集管理员登录的用户

我已尝试使用PowerShell来访问这也是迁移过程的一部分:

$account = "yourDomain\yourUser"
$account = (New-SPClaimsPrincipal -identity $account -identitytype 1).ToEncodedString()
$wa = get-SPWebApplication $WebAppName
$zp = $wa.ZonePolicies("Default")
$p = $zp.Add($account,"PSPolicy")
$fc=$wa.PolicyRoles.GetSpecialRole("FullControl")
$p.PolicyRoleBindings.Add($fc)
$wa.Update() 

$wa.MigrateUsers($true)
$wa.ProvisionGlobally()
这没用。我还检查了应用程序管理->网站集->更改网站集管理员中的网站集管理员

第一次切换时需要更改,因为以前的环境位于不同的域上,但现在作为网站集管理员列出的用户无法访问根网站集

我还尝试在中启用匿名访问,但仍然无法进入

这只是一个个人测试环境,所以不必担心尝试任何破坏的东西,我总是可以恢复虚拟机

如何重新获得对此web应用程序的访问权限


编辑:我还验证/设置了portalsuperuseraccount和portalsuperreaderaccount。。。此处概述:

您在2010年和相应的2013年网站上使用的身份验证方法是什么?@Paul 2010是经典的,作为经典迁移到2013年,并在连接到2013年经典auth web app后升级到声明。据我所知,建议在迁移之前升级到声明,“你试过这种方法吗?”保罗我在迁移过程中找到了一些方法。不,我没有试过,但我很容易做到。我将对这两个环境进行快照并尝试一下。您是使用Mount-SPContentDatabase还是使用stsadm工具连接内容数据库的。在我的测试迁移中,mount-spcontentdatabase cmdlet对我不起作用,而stsadm-addcontentdb则起作用。