【问题标题】:Windows PowerShell errorsWindows PowerShell 错误
【发布时间】:2013-04-22 15:52:09
【问题描述】:

我正在尝试使用 Windows PowerShell 2.0 连接到 Office 365。由于出现错误,我无法运行以下命令:

导入模块 MSOnline
连接-msolservice

如果 connect cmdlet 不工作,我将无法连接到我的 Office 365 实例。我已经在两台不同的计算机上尝试过了,在这两种情况下我都得到了同样的错误。一旦计算机运行 Windows XP 而另一台计算机运行 Windows 2008 R2。

一些背景。我已经从这里安装了 PowerShell 模块:

Microsoft Online Services Module for Windows PowerShell 32-bit
Microsoft Online Services Module for Windows PowerShell 64-bit

我从这里安装了 SIA(Microsoft Online Services Module for Windows PowerShell):

Microsoft Online Services Sign-In Assistant 32-bit
Microsoft Online Services Sign-In Assistant 64-bit

我该如何解决这个问题?

【问题讨论】:

    标签: powershell-2.0 office365


    【解决方案1】:

    如果 Import-Module 正常工作,则表示 cmdlet 已导入 PowerShell。试试这个:

    Import-Module -MsonlineExtented -Force
    

    【讨论】:

      猜你喜欢
      • 2016-11-26
      • 1970-01-01
      • 2018-08-26
      • 1970-01-01
      • 2019-03-24
      • 2010-11-26
      • 1970-01-01
      • 2018-12-17
      • 1970-01-01
      相关资源
      最近更新 更多