Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 75
  • Last Modified:

How to pull all user entered contacts from exchange mailboxes

I am looking for a way to pull all contacts that users have entered in Outlook via the EMC and empty them into either a PST file or into a CSV file ( A CSV file would be preferred if possible.) I want something that will process all mailboxes VS doing each one individually.
0
dustaine
Asked:
dustaine
1 Solution
 
Will SzymkowskiSenior Solution ArchitectCommented:
You can accomplish this using Powershell. See the below command for details...
The below script will get all mailboxes, export the contacts only and put store them in a PST file
foreach ($Mailbox in (Get-Mailbox)) {
New-MailboxExportRequest -Mailbox $Mailbox -FilePath “c:\pstfiles\$($Mailbox.Alias).pst” -IncludeFolders “#Contacts#” -ExcludeDumpster
}

Open in new window


You can also refer to the below link for more examples.
New-MailboxExportrequest

Will.
0
 
dustaineAuthor Commented:
Cool beans.  I will try that out.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now