powershell - 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以解决此问题,但这不是一个可能的解决方案,因为我需要两者用于不同的场景。
我该如何解决这个问题?
提前致谢。
解决方案
尝试在 GAC 中具有不同设置 DLL 的本地 SharePoint 2013 机器上运行这些脚本时,我遇到了类似的问题。我不想通过删除 GAC 版本来破坏我的 SharePoint 2013 设置……</p>
我的解决方案是在未安装 SharePoint 的机器上运行脚本。
推荐阅读
- r - 使用 sapply 将字符串参数传递给函数
- javascript - 将对象与对象数组中的对象合并
- python - 具有需要 dask 计算关键字参数的函数的自定义 dask 图
- python - 如何从整个函数返回单个变量?
- mysql - 在mysql中获取24小时后的日期
- android - AdMob 插页式广告尺寸对于我的 Android 手机来说非常大
- ios - 有没有办法使用 NetworkExtension 框架“注入”基本授权标头?
- kubernetes - 当 GCP 发布/订阅中的作业数量过多时初始化新服务
- sql - SQL比较case语句中一列中的多个数字
- python - “NoneType”对象没有属性“组”