Powershell

如何使用 powershell 為 hibrid 辦公環境設置外出消息?

  • May 9, 2018

我正在尋找一種方法來通過 powershell 為在 office 365/exchange 混合環境中的使用者設置**“不在辦公室”**消息。我們有一個交換混合環境。(有些使用者在onpremis exchange,有些使用者是office 365。)

對於本地使用者,我們使用以下 powershell 命令設置**“不在辦公室”消息**

Set-MailboxAutoReplyConfiguration -Identity xyz -AutoReplyState Scheduled –StartTime (get-date) -EndTime (get-date).addyears(1) -InternalMessage "Dear,-ExternalMessage "Dear"

但這不適用於 Office 365 使用者。

The operation couldn't be performed because object 'xyz' couldn't be found on 'domaincontroller"

是否有可能通過powershell/emc設置office 365 使用者“外出”消息?

根據我的研究,我發現作為交換混合環境命令發生了變化,例如new-mailbox變成new-remotemailbox。同樣明智的是Set-MailboxAutoReplyConfiguration,office 365 中的命令是什麼?

我只能找到以下兼容的命令。

在此處輸入圖像描述

您可以連接到 Exchange 線上 powershell並為 O365 使用者執行“Set-MailboxAutoReplyConfiguration”cmdlet。

引用自:https://serverfault.com/questions/911267