Home Microsoft Exchange Server 2010
Exchange 2010 Out Of Office/Auto Reply Using Set-MailboxAutoReplyConfiguration Print E-mail
Another possibility with the powershell command-lets in Exchange 2010 is to change the "Out of Office" aka "Mailbox Auto Reply" settings.
The "Get-MailboxAutoReplyConfiguration" and "Set-MailboxAutoReplyConfiguration" can be used to view the current auto reply settings and change the message etc that is sent.
You can also have seperate internal and external out of office messages.



View the current auto reply settings for a mailbox:
Here there has been no message set.
Get-MailboxAutoReplyConfiguration "andy barnes"

RunspaceId       : b1531019-f59a-45aa-9176-3033ca169444
AutoReplyState   : Disabled
EndTime          : 03/08/2010 17:00:00
ExternalAudience : All
ExternalMessage  :
InternalMessage  :
StartTime        : 02/08/2010 17:00:00
MailboxOwnerId   : domain.local/New York/Andy Barnes
Identity         : domain.local/New York/Andy Barnes
IsValid          : True 
 

Set the auto reply settings for a mailbox:
With seperate internal and external messages
Set-MailboxAutoReplyConfiguration -identity "andy barnes" -AutoReplyState enabled -EndTime 03/08/2010 -InternalMessage "I am currently out of the office on until Tuesday 4rd August due to
partying and so forth. Please could all enquiries be directed to ext 123 and emails be sent to somewhere@domain.local" -ExternalMessage "I am currently out of the office on until Tuesday 4rd August. Please could all enquiries be directed to ext 123 and emails be sent to somewhere@domain.local"

 

View the current auto reply settings for a mailbox:
Here you can see the message we have just set. Notice the internal message is different to the external message so that you can include further details to colleagues, that you might not want external contacts to know.
Get-MailboxAutoReplyConfiguration "andy barnes"

RunspaceId       : b1531019-f59a-45aa-9176-3033ca169444
AutoReplyState   : Enabled
EndTime          : 03/08/2010 16:00:00
ExternalAudience : All
ExternalMessage  : <html>
                   <body>
                   I am currently out of the office on until Tuesday 4rd August. Please could all enquiries be directed to ext 123 and emails be sent to somewhere@domain.local</body>
                   </html>
 
InternalMessage  : <html>
                   <body>
                   I am currently out of the office on until Tuesday 4rd August due to partying and so forth. Please could all enquiries be directed to ext 123 and emails be sent to somewhere@domain.local</body>
                   </html>
 
StartTime        : 02/08/2010 16:00:00
MailboxOwnerId   : domain.local/New York/Andy Barnes
Identity         : domain.local/New York/Andy Barnes
IsValid          : True


Disable Out of Office/Auto Reply:

Set-MailboxAutoReplyConfiguration "andy barnes" -AutoReplyState disabled



Disable Out of Office/Auto Reply and clear the Internal/External message:

Set-MailboxAutoReplyConfiguration -identity "andy barnes" -AutoReplyState disabled -InternalMessage "" -ExternalMessage ""



 

        
            

      

 

DISCLAIMER: All advice, tips, guides and other information on this website is provided as-is with no warranty or guarantee. While most information is correct to the best of my knowledge, I am not reponsible for any issues that may arise in using the information, and you do so at your own risk. As always before doing anything; check, double check, test and always make a backup.

 

Help VMadmin

All resources on this site are provided absolutley free. However it takes time and money to keep the site running. If any information has been helpful to you or your company, and you wish to make a donation to help keep VMadmin.co.uk running you can do so via paypal, and it would be much appreciated.

Click to donate to VMadmin.co.uk via paypal.