【发布时间】:2020-10-06 23:08:21
【问题描述】:
我目前正在构建一个 Office 365 PowerShell 应用程序,该应用程序使用以下方式连接到 Exchange Online:
Connect-ExchangeOnline
虽然它工作得很好,但在连接到租户时会发生一个小而微不足道但令人讨厌的事情 - 显示以下输出:
----------------------------------------------------------------------------
We have released new management cmdlets which are faster and more reliable.
|--------------------------------------------------------------------------|
| Old Cmdlets | New/Reliable/Faster Cmdlets |
|--------------------------------------------------------------------------|
| Get-CASMailbox | Get-EXOCASMailbox |
| Get-Mailbox | Get-EXOMailbox |
| Get-MailboxFolderPermission | Get-EXOMailboxFolderPermission |
| Get-MailboxFolderStatistics | Get-EXOMailboxFolderStatistics |
| Get-MailboxPermission | Get-EXOMailboxPermission |
| Get-MailboxStatistics | Get-EXOMailboxStatistics |
| Get-MobileDeviceStatistics | Get-EXOMobileDeviceStatistics |
| Get-Recipient | Get-EXORecipient |
| Get-RecipientPermission | Get-EXORecipientPermission |
|--------------------------------------------------------------------------|
To get additional information, run: Get-Help Connect-ExchangeOnline
Please send your feedback and suggestions to exocmdletpreview@service.microsoft.com
----------------------------------------------------------------------------
这没什么大不了的,对我的应用程序的功能绝对没有影响.. 只是有点碍眼,我有点自认是完美主义者!有没有办法抑制这个输出?强制转换为 null 似乎不起作用,我无法在其他任何地方找到任何可以解决问题的方法。
提前非常感谢!
【问题讨论】:
标签: powershell office365 exchange-server