Tiny Deathstars of Foulness

I’ve written an article on doing this in 2010 but seemed to have skipped 2007, so here goes… The first step in exporting mailboxes is to make sure that the account you’re using to export mailboxes has permissions to do so. In this case, we’ll give the exportadmin account Import and Export options using the New-ManagementRoleAssignment cmdlet in Exchange 2010: New-ManagementRoleAssignment –Role “Mailbox Import Export” –User exportadmin Next, you’ll need a system with Outlook 2010 and the Exchange Management Tools installed. From here, you can export mailboxes into PST files. To do so,  run the Export-Mailbox cmdlet with the -Identity option to include the account name of  a user and the -PSTFolderPath option to include a file location for the pst file. For example, to export user cedge to a folder called N:\exmerges: Export-Mailbox -Identity cedge -PSTFolderPath N:\exmerges\cedge.pst

February 5th, 2014

Posted In: Microsoft Exchange Server

Tags: , , , ,

I’ve written plenty about exporting mailboxes from Exchange. But what if you need to perform a selective import into Outlook? This is helpful for importing mail in date ranges, using an import to search for terms (common with litigation holds) and importing contacts and calendars. To get started, click Open from the File ribbon. Screen Shot 2014-02-03 at 10.51.01 AM When prompted, click on Import/Export. Screen Shot 2014-02-03 at 10.51.11 AM At the Import and Export Wizard screen, click on “Import from another program or file” Screen Shot 2014-02-03 at 10.51.27 AM At the “Import a File” screen, click on “Outlook Data File (pst)” Screen Shot 2014-02-03 at 10.51.41 AM   At the Import Outlook Data File screen, choose the mailbox to import into and then click on the Filter button. Using the filtering options, you can choose to import based on date ranges, using search terms, selecting specific folders or a combination of all of these.

February 4th, 2014

Posted In: Microsoft Exchange Server

Tags: , , , , , , , ,

Need to export mailboxes from Exchange? Hate using exmerge to do so. Gone are the days of exmerge. Well, not entirely. But welcome to the days of New-MailboxExportRequest. Much longer and cooler command than exmerge ever thought about being. C:\>New-MailboxExportRequest -Mailbox cedge -FilePath \\\pst\cedge.pst You then receive confirmation that the export has been queued: Name Mailbox Status ---- ------- ------ MailboxExport Queued To view the status, swap New with Get (Get-MailboxExportRequest): Get-MailboxExportRequest The output is as follows: Name Mailbox Status ---- ------- ------ MailboxExport InProgress To get even more info, use the -Name option with Get-MailboxExportRequest, identifying the actual process name. Get-MailboxExportRequest -Name MailboxExport | fl The output is as follows: RunspaceId : xxxxxxx-aaaa-bbbb-cccc-zzzzzzzzz FilePath : \\\pst\cedge.pst SourceDatabase : MB-HO-01 Mailbox : Name : MailboxExport RequestGuid : aaaaaaaa-bbbb-cccc-dddd-000000000000 RequestQueue : AA-BB-02 Flags : IntraOrg, Push BatchName : Status : InProgress Protect : False Suspend : False Direction : Push RequestStyle : IntraOrg OrganizationId : Identity :\MailboxExport IsValid : True To check the progress of all mailbox export requests, pipe Get-MailboxExportRequest into Get-MailboxExportRequestStatistics: C:\>Get-MailboxExportRequest | Get-MailboxExportRequestStatistics The output shows the completion percentage of each process Name: Name Status SourceAlias PercentComplete ---- ------ ----------- --------------- MailboxExport InProgress cedge 20 To clear completed requests: C:\>Get-MailboxExportRequest | where {$_.status -eq "Completed"} | Remove-MailboxExportRequest

October 31st, 2013

Posted In: Microsoft Exchange Server, Windows Server

Tags: , , , , , , , , , ,

To automate the process of exporting Exchange mailboxes to .pst files, we’re going to use the exmerge tool using a Windows batch file. We can use a MAILBOXES.TXT file to choose which mailboxes we’ll be using and possibly a SUBJECTS.TXT or ATTACHMENTS.TXT to constrain our searches. To run the exmerge, run as a typical GUI based merge but save the search. Once saved, you’ll be able to select a path, which we’ll call c:\tmpexmerge. In here, you should see an EXMERGE.INI as well as a MAILBOXES.TXT (and possibly a few other files. In the MAILBOXES.TXT file you’ll see the CN information for the mailboxes selected in the previous: /O=FIRST ORGANIZATION/OU=FIRST ADMINISTRATIVE GROUP/CN=RECIPIENTS/CN=CEDGE You can copy and paste this line to add others, changing the last CN entry (or other pathing information if in other OUs: /O=FIRST ORGANIZATION/OU=FIRST ADMINISTRATIVE GROUP/CN=RECIPIENTS/CN=WSMITH Once you’ve saved the file, edit the EXMERGE.INI file if needed (you usually don’t need to edit this one. Then run exmerge.exe using the command line: exmerge -F C:\tmpexmerge\EXMERGE.INI -B -D This takes awhile, and even longer if you’re actually searching for keywords or doing multiple mailboxes, but not as long as it would take to do things manually. .PST files are saved using the file path in the exmerge.ini. Watch Task Manager to make sure the backup is still running. The -D option above opens the GUI exmerge to show what’s happening (kinda’).

September 10th, 2013

Posted In: Microsoft Exchange Server

Tags: , , , , , , , , , ,