From the course: PowerShell for Exchange Administration

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Setting auto-replies

Setting auto-replies

- Let's take a look at sending a mailbox AutoReply in Exchange as an administrator in PowerShell. So the first thing is you'll either need to be in the Exchange management shell or have an Exchange management session open. And you can see that I've got an Exchange PowerShell session open. So the first scenario I want to take a look at is just setting the autoreply, say, to a name so it's just sending AutoReplies. And then give me in a couple of really simple messages and then of course setting the external audience to all. So I'm going to splat that into the Enabled variable and then we use the Set-MailboxAutoReplyConfiguration command-let to set those settings. And then using the Get-MailboxAutoreplyConfiguration we can examine those settings that we just set. And you can see that we now have an Autoreply state of enable and the internal and external messages were converted to HTML. So if we send that user a test message we can actually see what that message will look like. The next…

Contents