Quantcast
Channel: Technology Ireland » Powershell Commands
Viewing all articles
Browse latest Browse all 5

Export All Mailboxes from Exchange2007 without the Fuss…

$
0
0

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..



Viewing all articles
Browse latest Browse all 5

Latest Images

Trending Articles





Latest Images