我正在嘗試通過 PowerShell 為我的 Exchange Online 用戶更新自動回復設定。
我知道我可以通過 HTTP使用 Graph API ( https://docs.microsoft.com/en-us/graph/api/resources/automaticrepliessetting?view=graph-rest-1.0 ) 來做到這一點。
是否也可以使用 Microsoft Graph PowerShell SDK 更新這些設定?
我已經安裝了 Microsoft.Graph 模塊,但沒有找到它的 cmdlet...
使用 Set-MailboxAutoReplyConfiguration 不是一個選項,因為我通過具有證書身份驗證和限制性權限的應用程式注冊連接到 Graph...
謝謝你的幫助
uj5u.com熱心網友回復:
是否也可以使用 Microsoft Graph PowerShell SDK 更新這些設定?
我們在 Microsoft Graph PowerShell 模塊中沒有任何預定義的 cmdlet 來automaticRepliesSetting 為特定用戶更新。
如果你想更新自動回復設定,你可以使用這個 PowerShell cmdlet Set-MailboxAutoReplyConfiguration,它是Exchange PowerShell模塊的一部分。
由于我們沒有任何 Microsoft Graph PowerShell cmdlet,您可以Invoke-RestMethod在 PowerShell 中使用,呼叫更新郵箱用戶設定 rest api,如本博客所述(通過使用 PowerShell 呼叫 MS 圖形 api 發送外出電子郵件)。
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/362438.html
