Set Out Of Office message and mail forward for a user on Exchange 2010

Set Out Of Office message for a user on Exchange 2010

See current OOF configuration for user:

Get-MailboxAutoReplyConfiguration testuser

RunspaceId : 9260623c-85bf-4c19-8e1a-b08b8cbb1ef9
AutoReplyState : Disabled
EndTime : 4. 7. 2014 8:00:00
ExternalAudience : All
ExternalMessage :
InternalMessage :
StartTime : 3. 7. 2014 8:00:00
MailboxOwnerId : test.cz/xx/testuser
Identity : test.cz/xx/testuser
IsValid : True

Set OOF message:

Set-MailboxAutoReplyConfiguration -Identity testuser –AutoReplyState Scheduled –StartTime "
7/3/2014" –EndTime "7/4/2014" –ExternalMessage “External OOF message here” –InternalMessage “Internal OOF message here”

now see the config again:
Get-MailboxAutoReplyConfiguration testuser

RunspaceId : 9260623c-85bf-4c19-8e1a-b08b8cbb1ef9
AutoReplyState : Scheduled
EndTime : 4. 7. 2014 0:00:00
ExternalAudience : All
ExternalMessage :

External OOF message here

InternalMessage :

Internal OOF message here

StartTime : 3. 7. 2014 0:00:00
MailboxOwnerId : test.cz/xx/testuser
Identity : test.cz/xx/testuser
IsValid : True

to set forwarding use:

Set-Mailbox -Identity "Dan Park" -ForwardingAddress "danpark.parents@fineartschool.net" -DeliverToMailboxAndForward $true
Set-Mailbox -Identity "Dan Park" -ForwardingAddress "danpark.parents@fineartschool.net"

to stop forwarding use:

Set-Mailbox -DeliverToMailboxAndForward $false -ForwardingAddress $null -Identity testUser

Sources: http://technet.microsoft.com/en-us/library/dd351134(v=exchg.150).aspx

http://blogs.technet.com/b/exchange/archive/2011/09/08/configure-automatic-replies-for-a-user-in-exchange-2010.aspx

Advertisements

Tagged: , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

smsagent

Tips, tricks and time-savers for the Windows and ConfigMgr administrator

To The Point

Anything about Technology and Business

Brian's Power Windows Blog

Microsoft in the Enterprise. Windows, Hyper-V, Exchange, SQL, and more!

PowerScripting Podcast

Shownotes and links for the PowerScripting Podcast, a podcast to help people learn Windows Powershell

Learn Powershell | Achieve More

What is this Powershell of which you speak?

%d bloggers like this: