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
Powershell 导出SPWeb SharePoint 2010异常dll错误_Powershell_Sharepoint 2010 - Fatal编程技术网

Powershell 导出SPWeb SharePoint 2010异常dll错误

Powershell 导出SPWeb SharePoint 2010异常dll错误,powershell,sharepoint-2010,Powershell,Sharepoint 2010,运行以下命令时,Ik出现异常错误: PS C:\> Export-SPWeb -Identity http://dfz-85:81/ -Path "C:\temp.cmp" 这就是我得到的错误,每次我尝试该命令时.dll文件都会不断更改 Export-SPWeb : Could not find file 'C:\Users\cmsadmin\AppData\Local\Temp\mlilsk gt.dll'. At line:1 char:13 + Export-SPWeb <&

运行以下命令时,Ik出现异常错误:

PS C:\> Export-SPWeb -Identity http://dfz-85:81/ -Path "C:\temp.cmp"
这就是我得到的错误,每次我尝试该命令时.dll文件都会不断更改

Export-SPWeb : Could not find file 'C:\Users\cmsadmin\AppData\Local\Temp\mlilsk
gt.dll'.
At line:1 char:13
+ Export-SPWeb <<<<  -Identity http://dfz-vm85:81/ -Path "C:\tmep.cmp"
    + CategoryInfo          : InvalidData: (Microsoft.Share...CmdletExportWeb:
   SPCmdletExportWeb) [Export-SPWeb], FileNotFoundException
    + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletExportWeb
Export SPWeb:找不到文件'C:\Users\cmsadmin\AppData\Local\Temp\mlilsk
gt.dll'。
第1行字符:13

+Export SPWeb我遇到了同样的错误。找不到原因,但可以从“管理中心”>“备份还原”选项成功导出。

我最终避免了此问题,并使用SharePoint designer导出/导入


这只能在“所有文件”下以及在每个单独的文件上完成,afaik。

遇到了这个问题并最终解决了它。不确定实际的解决方案是什么,但我采取的步骤是:

  • 在从导出/导入时添加登录用户
  • 关闭SharePoint 2010管理Shell窗口
  • 使用“导入系统模块”选项重新打开SharePoint 2010 Management Shell窗口(右键单击Windows 7中的图标)

  • 我很想知道这是如何解决的,只需打开一个新的powershell会话即可解决