简体   繁体   中英

Update automaticRepliesSetting via PowerShell with Microsoft Graph PowerShell SDK

I am trying to update automaticRepliesSetting via PowerShell for my Exchange Online users.

I know that I can do it with the Graph API ( https://docs.microsoft.com/en-us/graph/api/resources/automaticrepliessetting?view=graph-rest-1.0 ) via HTTP.

Is it also possible to update these settings with the Microsoft Graph PowerShell SDK?

I have installed the Microsoft.Graph Module but do not find a cmdlet for it...

Using Set-MailboxAutoReplyConfiguration is not an option as I am connecting to Graph via an App Registration with certificate authentication and restrictive permissions...

Thanks for any help

Is it also possible to update these settings with the Microsoft Graph PowerShell SDK?

We don't have any predefined cmdlet in Microsoft Graph PowerShell module to update automaticRepliesSetting for a particular user.

If you want update automatic replies setting you have use this PowerShell cmdlet Set-MailboxAutoReplyConfiguration which is a part of Exchange PowerShell Module.

Since we don't have any Microsoft Graph PowerShell cmdlet, you can use Invoke-RestMethod in PowerShell, invoke the Update mailbox user setting rest api as explained in this blog (sending an out-of-office email by invoking MS graph api using PowerShell).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM