gpt4 book ai didi

powershell - 在 PowerShell 中使用 Connect-ExchangeOnline 命令时出现 New-ExoPSSession 错误

转载 作者:行者123 更新时间:2023-12-01 23:57:23 26 4
gpt4 key购买 nike

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

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:

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

关于powershell - 在 PowerShell 中使用 Connect-ExchangeOnline 命令时出现 New-ExoPSSession 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62519643/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com