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
Showing posts with label OOF. Show all posts
Showing posts with label OOF. Show all posts
Wednesday, July 09, 2014
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.
Subscribe to:
Posts (Atom)