Set Exchange Out of Office message for another user

As an Exchange Administrator, you need to set an “Out of office” message for another user.

In order to set an out of office in Exchange 2010, you can :

1/ Give yourself Full Access to the mailbox in the Exchange Management Console and then create a new mail profile (Control Panel -> Mail).

2/ Or use the “Set-MailboxAutoReplyConfiguration” cmdlet. I wrote this powershell script (save as “.ps1”) :

##############################
# Scripted by Nicolas : www.get-cmd.com
#  v1.0
#  Set Exchange "Out of office" message
##############################

# Import the Exchange 2010 modules.

if (Get-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010 -Registered -ErrorAction SilentlyContinue) {
# Add it
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
}

# Turn on the "out of office" for the user "Jumbo"
Set-MailboxAutoReplyConfiguration -identity "jumbo" -AutoreplyState enabled

# Change the actual internal "out of office" message
Set-MailboxAutoReplyConfiguration –identity “jumbo” –InternalMessage “Thank you for your e-mail. I will be out of office. Please contact John Smith....” –ExternalMessage “Thank you for your e-mail. I will be out of office . Please contact Jenny@contoso,com ....”

 

Tested on Exchange 2010 and 2013.

About Nicolas 282 Articles
I work as an IT Production Manager, based in Paris (France) with a primary focus on Microsoft technologies. I have 10 years experience in administering Windows Servers. . I am a Microsoft MVP for Cloud & Datacenter Management. I also received the PowerShell Hero 2016 award by PowerShell.0rg. And finally, I am "MCSE: Cloud Platform and Infrastructure", "MCSA: Windows Servers", "Administering & Deploying SCCM", and CheckPoint CCSA certified.

Leave a Reply