【问题标题】:Update automaticRepliesSetting via PowerShell with Microsoft Graph PowerShell SDK使用 Microsoft Graph PowerShell SDK 通过 PowerShell 更新 automaticRepliesSetting
【发布时间】:2021-12-29 19:22:29
【问题描述】:

我正在尝试通过 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...

感谢您的帮助

【问题讨论】:

    标签: azure powershell automation microsoft-graph-api microsoft-exchange


    【解决方案1】:

    是否也可以使用 Microsoft Graph 更新这些设置 PowerShell SDK?

    我们在 Microsoft Graph PowerShell 模块中没有任何预定义的 cmdlet 来为特定用户更新 automaticRepliesSetting

    如果您想更新自动回复设置,请使用此 PowerShell cmdlet Set-MailboxAutoReplyConfiguration,它是 Exchange PowerShell 模块的一部分。

    由于我们没有任何 Microsoft Graph PowerShell cmdlet,您可以在 PowerShell 中使用 Invoke-RestMethod,调用 Update mailbox user setting rest api,如 blog 中所述(通过调用 MS graph api 发送外出电子邮件使用 PowerShell)。

    【讨论】:

      猜你喜欢
      • 2022-01-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-06-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多