Sharepoint在线管理shell 16.0.8525.1200导入模块错误 [英] Sharepoint online management shell 16.0.8525.1200 import-module error
问题描述
刚刚安装了SharePoint Online Management shell。运行它会产生以下错误:
导入模块:无法从程序集中加载类型'Microsoft.SharePoint.Administration.DesignPackageType'
'Microsoft.SharePoint.Client,Version = 16.0.0.0,Culture = neutral,PublicKeyToken = 71e9bce111e9429c'。
在行:1 char:1
+ Import-模块Microsoft.Online.SharePoint.PowerShell -DisableNameChec ...
$
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ;   + CategoryInfo :NotSpecified :( :) [Import-Module],TypeLoadException
+ FullyQualifiedErrorId:System.TypeLoadException,Microsoft.PowerShell.Commands.ImportModuleCommand
我很感激任何想法或建议,寻找解决此问题的方向。
到目前为止,已经卸载并重新安装了sharepoint在线管理shell而没有解决问题。
在OneDrive上注意到我的重定向文档文件夹中的$ profile指向。
你去吧
Just installed the SharePoint Online Management shell. Running it generates the following error:
Import-Module : Could not load type 'Microsoft.SharePoint.Administration.DesignPackageType' from assembly
'Microsoft.SharePoint.Client, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'.
At line:1 char:1
+ Import-Module Microsoft.Online.SharePoint.PowerShell -DisableNameChec ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Import-Module], TypeLoadException
+ FullyQualifiedErrorId : System.TypeLoadException,Microsoft.PowerShell.Commands.ImportModuleCommand
I would appreciate any ideas or suggestions into what direction to look for solving this.
This far have uninstalled and reinstalled the sharepoint online management shell without solving the issue.
Did notice $profile points to my redirected documents folder on OneDrive.
Here you go
这篇关于Sharepoint在线管理shell 16.0.8525.1200导入模块错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!