Finding Users Who Have “Out Of Office” Enabled In Exchange 2010

[tweetmeme source=”stalehansen” only_single=false]Any Post starting with this disclaimer means that this post was not written by me however I liked it and added it to my blog. I will also include the link to the original or similar post to provide credit to the original author

http://www.howexchangeworks.com/2009/11/finding-users-who-have-out-of-office.html

It might come in handy if you know how to get a list of users who have out of office message turned on. Exchange 2010 shell gives you that ability now. You can even change the message, set the audience (internal or external), turn it off etc with the shell.

  • To get a list of users who have out of office scheduled, run the following command.
    • Get-Mailbox | Get-MailboxAutoReplyConfiguration | Where-Object { $_.AutoReplyState –eq “scheduled” }
    • The above command gives you much more than you need, including the actual message, start time, end time etc.
  • If you are only interested in the list of users, run
    • Get-Mailbox | Get-MailboxAutoReplyConfiguration | Where-Object { $_.AutoReplyState –eq “scheduled” } | fl identity
    • Find USers with oof scheduled
  • If you want to get the settings for a particular user (for example Rajith), run
    • Get-MailboxAutoReplyConfiguration –identity rajith
  • You can also change the out of office settings for a particular user with the Set-MailboxAutoReplyConfiguration cmdlet.
    • For example, to turn off the out of office for the user account “Rajith”, run
    • Set-MailboxAutoReplyConfiguration –identity “Rajith” –AutoreplyState disabled
    • Disable autoreply
  • Similarly, if you want to extend the out of office message for a user (change the end time), run
    • Set-MailboxAutoReplyConfiguration –identity “Rajith” –EndTime 01/12/2009 17:00:00
  • You can change the actual out of office message (internal and external) by running
    • Set-MailboxAutoReplyConfiguration –identity “Rajith” –InternalMessage “I won’t be around today guys” –ExternalMessage “I am out of the office today”

NOTE: This cmdlets will only work in Exchange 2010 Shell

5 thoughts on “Finding Users Who Have “Out Of Office” Enabled In Exchange 2010

  1. Thanks for this one!

    if you add -OR $_.AutoReplyState -eq “enabled” in the where-object-clause you get also those users, who just enabled the “out of office” without setting an ending-date.

  2. HI, thanks for the info. Is there a way to query this programatically, say from a Webservice or RMI invokation etc?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s