New-ExoPSSession error when using Connect-ExchangeOnline command in PowerShell

生来就可爱ヽ(ⅴ<●) 提交于 2020-06-29 05:05:49

问题


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

回答1:


Please try to use the cmdlet as follows:

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


来源:https://stackoverflow.com/questions/62519643/new-exopssession-error-when-using-connect-exchangeonline-command-in-powershell

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!