How to Configure Out Of Office (OOO) via Exchange PowerShell
How to Configure Out Of Office (OOO) via Exchange PowerShell
Sometimes an end user goes on unexpected leave and the administrator needs to turn on their Out of office for them.
This can be simply done via the exchange powershell command. In addition, you can turn off a users out of office using exchange powershell as well.
Setting Up out of office message by Exchange PowerShell
Set-MailboxAutoReplyConfiguration -identity “name@test.com” –ExternalMessage “Thanks for your mail. I am out of office and do not have access to mails. If your matter is urgent, please send an email to support@test.com” -InternalMessage “Thanks for your mail. I am out of office and do not have access to mails. If your matter is urgent, please send an email to support@test.com”
Enabling Out Of Office using Exchange PowerShell
Set-MailboxAutoReplyConfiguration “name@test.com” –AutoReplyState Enabled
Removing Out Of Office using Exchange PowerShell
Set-MailboxAutoReplyConfiguration “name@test.com” –AutoReplyState Disabled –ExternalMessage $null –InternalMessage $null
Check Out Of State for a User
You can also utilize Get-MailboxAutoReplyConfiguration -Identity “name@test.com” to check the OOO that has been setup.