Set-MailboxAutoReplyConfiguration
Applies to: Exchange Server 2010
Topic Last Modified: 2011-03-19
Use the Set-MailboxAutoReplyConfiguration cmdlet to configure Automatic Replies settings for a specific mailbox.
Set-MailboxAutoReplyConfiguration -Identity <MailboxIdParameter> [-AutoReplyState <Disabled | Enabled | Scheduled>] [-Confirm [<SwitchParameter>]] [-DomainController <Fqdn>] [-EndTime <DateTime>] [-ExternalAudience <None | Known | All>] [-ExternalMessage <String>] [-IgnoreDefaultScope <SwitchParameter>] [-InternalMessage <String>] [-StartTime <DateTime>] [-WhatIf [<SwitchParameter>]]
| Parameter | Required | Type | Description |
|---|---|---|---|
|
Identity |
Required |
Microsoft.Exchange.Configuration.Tasks.MailboxIdParameter |
The Identity parameter specifies a unique identifier associated with a mailbox. You can use any value that uniquely identifies a mailbox. Accepted values for the mailbox are as follows:
|
|
AutoReplyState |
Optional |
Microsoft.Exchange.InfoWorker.Common.OOF.OofState |
The AutoReplyState parameter specifies whether the mailbox is enabled for Automatic Replies. Accepted values are Enabled, Disabled, and Scheduled. The default value is Disabled. |
|
Confirm |
Optional |
System.Management.Automation.SwitchParameter |
The Confirm switch causes the command to pause processing and requires you to acknowledge what the command will do before processing continues. You don't have to specify a value with the Confirm switch. |
|
DomainController |
Optional |
Microsoft.Exchange.Data.Fqdn |
The DomainController parameter specifies the fully qualified domain name (FQDN) of the domain controller that writes this configuration change to Active Directory. |
|
EndTime |
Optional |
System.DateTime |
The EndTime parameter specifies the end date and time that the Automatic Replies are sent for the specified mailbox. |
|
ExternalAudience |
Optional |
Microsoft.Exchange.InfoWorker.Common.OOF.ExternalAudience |
The ExternalAudience parameter specifies whether Automatic Replies are sent to external senders. The values are None, Known, and All. The default value is None. |
|
ExternalMessage |
Optional |
System.String |
The ExternalMessage parameter specifies the Automatic Replies message that's sent to external senders or senders outside of the organization. |
|
IgnoreDefaultScope |
Optional |
System.Management.Automation.SwitchParameter |
The IgnoreDefaultScope parameter instructs the command to ignore the default recipient scope setting for the Exchange Management Shell session and use the entire forest as the scope. This allows the command to access Active Directory objects that aren't currently in the default scope. Using the IgnoreDefaultScope parameter introduces the following restrictions:
|
|
InternalMessage |
Optional |
System.String |
The InternalMessage parameter specifies the Automatic Replies message that's sent to internal senders or senders within the organization. |
|
StartTime |
Optional |
System.DateTime |
The StartTime parameter specifies the start date and time that the Automatic Replies are sent for the specified mailbox. |
|
WhatIf |
Optional |
System.Management.Automation.SwitchParameter |
The WhatIf switch instructs the command to simulate the actions that it would take on the object. By using the WhatIf switch, you can view what changes would occur without having to apply any of those changes. You don't have to specify a value with the WhatIf switch. |
You can disable Automatic Replies for a specified mailbox or organization.
You need to be assigned permissions before you can run this cmdlet. Although all parameters for this cmdlet are listed in this topic, you may not have access to some parameters if they're not included in the permissions assigned to you. To see what permissions you need, see the "User options" entry in the Client Access Permissions topic.
| Error | Description |
|---|---|
|
|
|
This example configures Automatic Replies for Tony's mailbox to be sent during the start and end dates specified.
Set-MailboxAutoReplyConfiguration -Identity tony -StartTime 7/10/2010 -AutoReplyState Enabled -EndTime 7/15/2010
This example configures Automatic Replies to be sent for Tony's mailbox between the start and end times specified.
Set-MailboxAutoReplyConfiguration -Identity tony -StartTime 00:00 -EndTime 18:00
This example enables Automatic Replies to be sent from Tony's mailbox to internal senders.
Set-MailboxAutoReplyConfiguration -AutoReplyState Enabled -Identity tony
