Set Out of Office in Exchange 2010/2013 via the Exchange Management Shell

2017-12-11T09:16:12+00:00 April 1st, 2014|Exchange|

Here’s a quick way you can set Out of Office via the Exchange Management shell for a User

Steps to Set Out of Office

  • Log onto an Exchange Server or onto a machine with the EMS
  • Create a folder to the root of the C Drive called “Support
  • Create 2 txt files named “InternalMessage.txt” and “ExternalMessage.txt” in the Support folder just created
  • Now in the InternalMessage.txt type what you’d like your Internal Out Of Office to be
  • And in the ExternalMessage.txt type what you’d like your External Out Of Office to be

  • Now Run the Below commands to Set the Out of Office replies you created , be sure to change the User in Bold to the one you need to set OOF on

     

$internalmessage = get-content C:Supportinternalmessage.txt

$Externalmessage = get-content C:Supportexternalmessage.txt

Set-MailboxAutoReplyConfiguration User -AutoReplyState enabled -ExternalAudience all -InternalMessage $InternalMessage -ExternalMessage $ExternalMessage

  • Now the users OOF will be set and turned on J

 

If you wish to turn Out of Office off, simply run “Set-MailboxAutoReplyConfiguration User -AutoReplyState disabled” J