when we activate the option out of office in exchange, only it allows us to send a mesage response by sender once the feature activated, sometimes it would be interesting to reset the counter of shipments (by user) to send the notice out of office again to the same sender.
An elegant solution is:

deactivate and reactivate the option of out of office by a task of powershell,

for instance:

ccreate a few scripts like this:


Set-MailboxAutoReplyConfiguration mailbox1 -AutoReplyState Disabled;
Set-MailboxAutoReplyConfiguration mailbox2 -AutoReplyState Disabled;
Set-MailboxAutoReplyConfiguration mailbox3 -AutoReplyState Disabled;


Set-MailboxAutoReplyConfiguration mailbox1 -AutoReplyState Enabled;
Set-MailboxAutoReplyConfiguration mailbox2 -AutoReplyState Enabled;
Set-MailboxAutoReplyConfiguration mailbox3 -AutoReplyState Enabled;

create 2 scheduled taks (wait 1 minute one to other) to execute ,you can configure the schedule like you want, ( each day, each week , each hour,…..)
with the parameters for the first:
-version 2.0 -command “. ‘c:\Exchange\bin\RemoteExchange.ps1’; Connect-ExchangeServer -auto;.\roof.ps1”
with the parameters for the second:
-version 2.0 -command “. ‘c:\Exchange\bin\RemoteExchange.ps1’; Connect-ExchangeServer -auto;.\soof.ps1”