1

Is there a way to disable or remove the Automatic Reply Rules that can be created in Outlook with Powershell? They can be reached by clicking the 'Rules...' button under the 'Automatic Replies' window within Outlook.

We have employees that use these rules to forward emails to their personal emails, but they sometimes forget to turn them off when they leave the organization. I can disable inbox rules using the 'Remove-InboxRule' cmdlet, but I cannot find anything for these type of rules.

Thanks for any help.

2 Answers 2

1

The Set-MailboxAutoReplyConfiguration cmdlet is probably what you're after:

Set-MailboxAutoReplyConfiguration -Identity "Mr. Leaver" -AutoReplyState Disabled

In an automation scenario, use the -Confirm:$false switch to circumvent manual confirmation

1
  • Mathias - Thank you for the reply. If the Out-Of-Office is turned off, it is not a problem. Although, we like to leave this on for a month with a message to contact someone else in the organization for further information. M M
    – M M
    Apr 14, 2015 at 21:13
0

I just did this. The Automatic Reply Rules are not the same as "Inbox Rules", however, you can see them using Get-InboxRule using the -IncludeHidden switch.

You can then use the Remove-InboxRule command to get ride of it, using the mailbox id and RuleIdentity values.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .