Export out-of-office (OOF) autoreplies from Exchange 2010 with Powershell
Quick and very dirty export out-of-office (OOF) autoreplies from Exchange 2010 with Powershell.
get-mailbox -resultsize unlimited | get-mailboxautoreplyconfiguration | where {$_.autoreplystate -ne "disabled"} | select identity,autoreplystate,starttime,endtime,@{NAME='InternalMessage';Expression={$_.InternalMessage -replace ("`n") -replace("</p","/<") -replace("<.*?>") -replace(" ","") }},@{NAME='ExternalMessage';Expression={$_.InternalMessage -replace ("`n") -replace("</p","/<") -replace("<.*?>") -replace(" ","") }} | Export-Csv -Encoding unicode -NoTypeInformation outofoffice.csv
Comments
Post a Comment
Got something to say?!