Tested with Exchange 2010. You'll need Exchange Management shell but no need for exchange admin rights.
Get-Recipient -ResultSize unlimited | Select Name -ExpandProperty EmailAddresses | Where-Object {$_.SmtpAddress -ne $null} | Select Name,SmtpAddress,IsPrimaryAddress | Export-csv -Encoding unicode -NoTypeInformation AllEmailAddress.csv
Showing posts with label Exchange. Show all posts
Showing posts with label Exchange. Show all posts
Monday, September 01, 2014
Saturday, July 19, 2014
SID HISTORY: Fixing Exchange
Dumping my notes about fixing SID history at work. Use at your own risk. These worked for me but won't work for you without some adjustments.
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.
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
Collaboration Data Objects (CDO) 1.2.1 with Outlook 2010 and 2013
Many vbscripts use old Outlook / Exchange CDO components for MAPI access. Without CDO you'll get "ERROR: ActiveX component can't create object (MAPI.Session)" error message. Unfortunately CDO works only with 32-bit Outlook 2007. If you're running 32-bit Outlook 2010 or 2013 in either 32-bit or 64-bit OS following might come handy.
Subscribe to:
Posts (Atom)