How to add an Out of Office message in Office 365 using powershell

know it’s a simply task to do from OWA, but if you want to add an Out of Office message for another user, you will have to reset it’s password, login into OWA and setup the message there. But I don’t want to reset the user’s password. So, after connecting to office 365, use the following commands:

Set-MailboxAutoReplyConfiguration -Identity user@example.com -AutoReplyState Enabled -ExternalMessage "message with whatever autoreply" -InternalMessage "internal something autoreply"

How do I disable this?

Set-MailboxAutoReplyConfiguration -Identity user@example.com -AutoReplyState Disabled

Leave a Reply

Your email address will not be published. Required fields are marked *

*