We use cookies to improve your experience.
By your continued use of this site you accept such use.
For more details please see our privacy policy and cookies policy.

Script repository

Set Out-of-Office image

February 18, 2021 Views: 2515

The script sets an Out-of-Office image for a user in Exchange.

To set OOF images using Adaxes, you can create a custom command that runs the script. For more information, see Create a Custom Command.

Edit Remove
PowerShell
$html = @"
<html>
 <body>
  <p><img src='http://www.example.com/MyImage.png'></p>
 </body> 
</html>
"@

$mailboxParams = $Context.TargetObject.GetMailParameters()

$automaticReplies = $mailboxParams.AutoReplyConfiguration
$automaticReplies.InternalMessage = $html
$automaticReplies.ExternalMessage = $html

$mailboxParams.AutoReplyConfiguration = $automaticReplies
$Context.TargetObject.SetMailParameters($mailboxParams, 'ADM_SET_EXCHANGE_PARAMS_FLAGS_NONE')

Comments 0
Leave a comment
Loading...

Got questions?

Support Questions & Answers