skip to Main Content

Get users that have Out of Office enabled in Exchange

It’s good to know which users are not in the office. For example, you are migrating mailboxes and you want to confirm if those users had any issues. If you don’t hear anything from them, you assume all is good. What if they are not in their office? To make it easier for you, you can have a list of users with Out of Office enabled. In this article, you will learn how to get the information through PowerShell. If you need to know how to change the Out of Office of a user through Exchange, read the article Change Out of Office user through Exchange.

Get users Out of Office enabled

Run the following command in Exchange Management Shell as administrator.

If you want to export the result to a CSV file, run the following command.

It can take some minutes before the result gets exported to a CSV file. After it finished, go to C:\output\ and verify that the export went successfully.

If you want to have the Out of Office reply of a single user, for example, the user is named John Doe with e-mail, run the following command.

You can see from the following screen that the AutoReplyState is Enabled.

Final thoughts

It is great to know that you can list the users of the entire organization that have the Out of Office enabled or only the users that you insert with PowerShell. Hoping that this made your life easier and that you get your project or job done. If you enjoyed this article, you may also like Get total users count in Exchange. Don’t forget to follow us.



ALI TAJRAN is a passionate IT Architect and IT Consultant. His specialism is designing and building complex enterprise environments. He started Information Technology at a very young age, and his goal is to teach and inspire others. Connect with ALI TAJRAN on social media. Read more »

This Post Has 0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top