为什么下载 Exchange online powershell 模块时 Microsoft Edge 不起作用

为什么下载 Exchange online powershell 模块时 Microsoft Edge 不起作用

我收到这个错误

PLATFORM VERSION INFO
    Windows             : 10.0.18363.0 (Win32NT)
    Common Language Runtime     : 4.0.30319.42000
    System.Deployment.dll       : 4.8.3752.0 built by: NET48REL1
    clr.dll             : 4.8.4075.0 built by: NET48REL1LAST
    dfdll.dll           : 4.8.3752.0 built by: NET48REL1
    dfshim.dll          : 10.0.18362.1 (WinBuild.160101.0800)

SOURCES
    Deployment url          : file:///blah/Downloads/Microsoft.Online.CSE.PSModule.Client%20(1).application

IDENTITIES
    Deployment Identity     : Microsoft.Online.CSE.PSModule.Client.application, Version=16.0.3527.0, Culture=neutral, PublicKeyToken=45baf49ae30bdb15, processorArchitecture=msil

APPLICATION SUMMARY
    * Installable application.
    * Trust url parameter is set.
ERROR SUMMARY
    Below is a summary of the errors, details of these errors are listed later in the log.
    * Activation of C:\blah\Downloads\Microsoft.Online.CSE.PSModule.Client (1).application resulted in exception. Following failure messages were detected:
        + **Deployment and application do not have matching security zones.**

答案1

您为什么要使用浏览器来执行此操作?

PowerShell 模块位于 MS powershelgallery.com 中,应该下载并使用 PowerShell 直接在 PowerShell 中安装,因为这是唯一可以使用它们的地方。

Find-Module -Name '*exchange*' | Format-Table -AutoSize
<#
# Results

Version     Name                                              Repository Description                                                             
-------     ----                                              ---------- -----------                                                             
0.4578.0    ExchangeOnlineManagement                          PSGallery  This is a public preview release of Exchange Online PowerShell V2 mod...
2.0.3.5     ExchangeOnlineShell                               PSGallery  Module for creation a session to manage Exchange Online Shell with or...
1.31.0      xExchange                                         PSGallery  Module with DSC Resources for deployment and configuration of Microso...
16.0.0.0    Microsoft.Exchange.Management.ExoPowershellModule PSGallery  Microsoft.Exchange.Management.ExoPowershellModule from the exchange o...
...
#>

Find-Module -Name 'ExchangeOnlineShell' | 
Save-Module -Path "$env:USERPROFILE\Documents\WindowsPowerShell\Modules" -Force
Install-Module -Name 'ExchangeOnlineShell' -Verbose

安装所有 Office 365 PowerShell 模块 https://o365reports.com/2019/11/01/install-all-office-365-powershell-modules

您可以使用单个脚本安装所有 Office 365 PowerShell 模块。您可以从 TechNet 库下载该脚本

连接到所有 Office 365 服务 PowerShell - 也支持 MFA

使用我们的一体化 PowerShell 脚本,您可以使用单个 cmdlet 连接到所有 Office 365 服务。它支持 MFA 和非 MFA 帐户 -Exchange Online -Azure AD -SharePoint Online -Skype for Business Online -安全与合规中心 -Teams 下载:ConnectO365Services.ps1

我主要使用 MS Edge,尝试时没有遇到此问题。转到此 URL(PowershellGet 检索它的位置相同)可以正常工作。

ExchangeOnlineShell 2.0.2 模块用于创建会话以管理具有或不具有代理设置的 Exchange Online Shell。支持 MFA。 https://www.powershellgallery.com/packages/ExchangeOnlineShell/2.0.2

答案2

据我所知,IE和microsoft edge的核心是不同的,很多东西需要IE下载。

相关内容