In your organization, you get a call from a departmental managers secretary to advise he/she forget to set there Out of Office and have requested you to do so.
To set it, quickly launch the Exchange Management Shell (EMS) and run the following command:
- Set-MailboxAutoReplyConfiguration -Identity User1 -AutoReplyState Enabled -InternalMessage “Playing golf with a client” -ExternalMessage “I am on vacation with limited access to email”
Update the internal and external message to whatever is required. Wait for replication and all should be set.
To check the state of the Out of Office, run the following command:
- Get-MailboxAutoReplyConfiguration User1
Hope it helps.