Out of Office with PowerShell

Setting OOF for a mailbox. Run this command
Simple OOF
Set-MailboxAutoReplyConfiguration USERID -AutoReplyState Enabled –ExternalMessage "Message that you want to go out.” –InternalMessage "Message that you want to go out.”
To schedule run
Set-MailboxAutoReplyConfiguration USERID –AutoReplyState Scheduled –StartTime “12/19/2013” –EndTime “4/30/2014” –ExternalMessage "Message that you want to go out.” –InternalMessage "Message that you want to go out.”
To Check run
Get-MailboxAutoReplyConfiguration USERID

More Information