Forum Discussion
AndreRadtke
Feb 21, 2025Brass Contributor
Configure autoreply with rules via PowerShell
Hello, I need a solution where I can set the autoreply agent in outlook with a rule via powershell. I am using exchange online. In the outlook client on my laptop I can activate the autoreply age...
VasilMichev
Feb 21, 2025MVP
PowerShell cmdlets will not help you here, as you've already noticed. You can however configure such rules via EWS, though this might be an overkill if you are configuring this for your own mailbox. Or any mailbox you have access to via Outlook. For such, simply use Inbox rules, it's what autoresponder rules are effectively, just exposed via a different UI. If you are interested in how they work on the backend, see this article: https://learn.microsoft.com/en-us/exchange/troubleshoot/email-delivery/understand-troubleshoot-oof-replies
If you do need to do this programmatically, here's a sample article: https://www.michev.info/blog/post/5773/configure-an-auto-reply-rule-for-microsoft-365-mailboxes-via-ews