首页 > 解决方案 > SharePoint Online Management Sell 与 Share Point Online 客户端组件 SDK 冲突

问题描述

我的电脑同时安装了 Share Point Online 客户端组件 SDK 和 SharePoint Online Management Shell(16.0.20414.12000)。尝试执行命令Connect-SPOService -Url $SpSiteURL时出现以下错误。

术语“Connect-SPOService”未被识别为 cmdlet 的名称

尝试导入模块 Microsoft.Online.SharePoint.PowerShell 时,出现以下错误

无法从程序集“Microsoft.SharePoint.Client.Publishing,版本=16.0.0.0,文化=中性,PublicKeyToken=71e9bce111e9429c”加载类型“Microsoft.SharePoint.Client.Publishing.PortalLaunch.PortalLaunchRedirectionType”

我发现一些互联网资源要求卸载 Share Point Online Client Component SDK以解决此问题,但这不是一个可能的解决方案,因为我需要两者用于不同的场景。

我该如何解决这个问题?

提前致谢。

标签: powershellsharepointsharepoint-online

解决方案


尝试在 GAC 中具有不同设置 DLL 的本地 SharePoint 2013 机器上运行这些脚本时,我遇到了类似的问题。我不想通过删除 GAC 版本来破坏我的 SharePoint 2013 设置……</p>

我的解决方案是在未安装 SharePoint 的机器上运行脚本。


推荐阅读