当前位置:网站首页 > 更多 > 玩电脑 > 正文

[玩转系统] 您当前使用的是旧版本的 Exchange Online PowerShell 模块

作者:精品下载站 日期:2024-12-14 07:10:33 浏览:13 分类:玩电脑

您当前使用的是旧版本的 Exchange Online PowerShell 模块


使用命令 Connect-ExchangeOnline 连接到 Exchange Online PowerShell 时,不会发生任何特殊情况。但是,当执行 Get-Mailbox 等 PowerShell 命令时,您会收到以下警告:

PS C:\WINDOWS\system32> $mailboxes = Get-mailbox -ResultSize unlimited
Attention!
You are currently using an older version of the Exchange Online PowerShell module which uses RPS. RPS deprecation has been announced and you will need to move to the latest V3 module by June 2023. Read more here: https://aka.ms/RPSDeprecation 
Please install our new REST-based PS V3 module downloadable from https://www.powershellgallery.com/packages/ExchangeOnlineManagement/, which is more secure and reliable.
Please note that you will no longer be able to use -UseRPSSession after June 2023.

Microsoft 引入了新的 Exchange Online PowerShell 模块 (v3),之前的模块将在不久的将来被弃用。

要更新PowerShell模块,需要先卸载旧模块,然后才能安装最新版本。要卸载旧的 v2 模块,请执行以下命令:

Uninstall-Module ExchangeOnlineManagement

要安装新的 v3 模块,请执行以下命令:

Install-Module -Name ExchangeOnlineManagement -RequiredVersion 3.0.0

要检查已安装的 PowerShell 模块和版本,请执行 Get-InstalledModule 命令。

您需要 登录账户 后才能发表评论

取消回复欢迎 发表评论:

关灯