Avatar of The-It-Pro
The-It-ProFlag for Zimbabwe

asked on 

Powershell Script or GPO to Reset OOO message count on Exchange 2010

I am looking for an PowerShell script or GPO that will disable the Out Of Office assistant or OOO and then re-enable it to clear the message count to external senders for Exchange 2010. This would need to be done on the exchange server itself. Can anyone help?
ExchangePowershell

Avatar of undefined
Last Comment
Qlemo
Avatar of Qlemo
Qlemo
Flag of Germany image

Showing for two mailboxes:
"identity1", "identity2" |
  Get-MailboxAutoReplyConfiguration | 
  ? { $_.AutoReplyState -ne 'Disabled' } |
  % {
    $ooo =  $_
    $ooo | Set-MailboxAutoReplyConfiguration -AutoReplyState Disabled
    $ooo | Set-MailboxAutoReplyConfiguration -AutoReplayState $ooo.AutoReplyState -StartTime $ooo.StartTime -EndTime $ooo.EndTime
  }

Open in new window

This can be changed easily to use get-mailbox instead of a list to go thru all mailboxes.
I just want to point out that to use that script with that cmdlet you will need to be running atleast Exchange 2010 SP3.

Will.
Avatar of The-It-Pro
The-It-Pro
Flag of Zimbabwe image

ASKER

Thank you for the reply. Please clarify as to how I would use the above to disable all autoreply on the entire organisation iso per mailbox. I am not a expert on PowerShell and would prefer a gpo, but it seems like there is no such an option.
ASKER CERTIFIED SOLUTION
Avatar of Qlemo
Qlemo
Flag of Germany image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Exchange
Exchange

Exchange is the server side of a collaborative application product that is part of the Microsoft Server infrastructure. Exchange's major features include email, calendaring, contacts and tasks, support for mobile and web-based access to information, and support for data storage.

213K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo