在PowerShell中使用Connect-ExchangeOnline命令时出现New-ExoPSSession错误 [英] New-ExoPSSession error when using Connect-ExchangeOnline command in PowerShell

查看:120
本文介绍了在PowerShell中使用Connect-ExchangeOnline命令时出现New-ExoPSSession错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Connect-ExchangeOnline命令连接到Powershell,但出现以下错误.有什么想法吗?

I ma trying to connect to Powershell using the Connect-ExchangeOnline command but I am getting the folloing error. Any ideas?

New-ExoPSSession : . 
At C:\Program Files\WindowsPowerShell\Modules\ExchangeOnlineManagement\1.0.1\ExchangeOnlineManagement.psm1:445 char:30
+ ... PSSession = New-ExoPSSession -ExchangeEnvironmentName $ExchangeEnviro ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [New-ExoPSSession], Exception
    + FullyQualifiedErrorId : System.Exception,Microsoft.Exchange.Management.ExoPowershellSnapin.NewExoPSSession

推荐答案

请尝试如下使用cmdlet:

Please try to use the cmdlet as follows:

Connect-IPPSSession -PSSessionOption
$EXOSession = New-ExoPSSession -pssessionoption
Import-PSSession $EXOSession -Prefix EXO

这篇关于在PowerShell中使用Connect-ExchangeOnline命令时出现New-ExoPSSession错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆