
#Set Auto-Reply configuration
#Line Formated Auto Replay Sender

$InternalMsg = "-- Internal Message -- <BR><BR>Hi, <BR>
<BR>Thank you for your email.<BR>
<BR>Please be aware that the HR Business Support Team are unavailable on Friday 1st May and will respond to your query as soon as possible.<BR>
<BR>Apologies for the inconvenience caused"

$ExternalMsg = "-- External Message -- <BR><BR>Hi, <BR>
<BR>Thank you for your email.<BR>
<BR>Please be aware that the HR Business Support Team are unavailable on Friday 1st May and will respond to your query as soon as possible.<BR>
<BR>Apologies for the inconvenience caused"

Set-MailboxAutoReplyConfiguration -identity “alb100” –AutoReplyState Scheduled –StartTime “30 April 2015 16:56:11” –EndTime “30 July 2017 16:56:11” -InternalMessage $InternalMsg -ExternalMessage $ExternalMsg 

########## To Remove AutoReplyconfig #######
#Set-MailboxAutoReplyConfiguration “alb100” –AutoReplyState Disabled –ExternalMessage $null –InternalMessage $null

######### Get Out Of Office status ########
#Get-MailboxAutoReplyConfiguration “alb100”


