The following commands can be used if you need to check which accounts have Out of Office set through EMS.

Get-Mailbox | Get-MailboxAutoReplyConfiguration | Where-Object { $_.AutoReplyState –eq “scheduled” } | fl identity

Get-Mailbox | Get-MailboxAutoReplyConfiguration | Where-Object { $_.AutoReplyState –eq “enabled” } | fl identity

To get the Out Of Office settings for a particular user, use the following command

Get-MailboxAutoReplyConfiguration –identity joebloggs