Using Powershell to add Out of Office

Adding an out of office using powershell

 

Set-MailboxAutoReplyConfiguration -Identity "User-Here" -AutoReplyState Scheduled -StartTime "6/14/2023 08:00:00" -EndTime "6/15/2023 17:00:00" -InternalMessage "Test ignore" -ExternalMessage "Test Ignore External"