Export All Mailboxes from Exchange2007 without the Fuss…

OK, so you have managed to get yourself through the nice issue of being able to export email from exchange2007 via Power-shell http://technet.microsoft.com/en-us/library/bb266964(v=exchg.80).aspx , Where you needed a whole list of things (32 bit machine,Powershell,.net framework,Exchange Management Tools (2007),Outlook,IIS components enabled etc…

but you still have the problem of needing to export ALL mailboxes at once (seperating into individual PSTS) then you simply need this piece of code to do it… Just copy and paste and let the exporting begin…

get-mailbox | foreach {$name=$_.alias
Add-MailboxPermission -Identity $name -User administrator -AccessRights FullAccess
export-Mailbox -identity $name -PSTFolderPath d:\Pst1\$name.pst -confirm:$false
}

Change bold parameters to whatever you specifics are..

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: