• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2187
  • Last Modified:

power shell command: export multiple user mailbox to PST file

I am doing some cleanup on my Exchange database, and one the task is to export all disabled users mailbox to PST files on a external drive. Can someone please help with power shell command to accomplish this. Thank you in advance.
0
tomfontanilla
Asked:
tomfontanilla
  • 7
  • 4
  • 3
  • +1
2 Solutions
 
Joseph DalyCommented:
What version of exchange are you running?
0
 
Joseph DalyCommented:
A quick way of doing this would be. This will get the whole mailbox. Assuming you are on 2007. 2010 has a slightly different method.

Export-Mailbox -Identity email@domain.com -PSTFolderPath C:\PSTFiles\username.pst
0
 
AmitIT ArchitectCommented:
#ensure that you give the alias names in input file
$disabledlist=get-content c:\list.txt

foreach($mbx in $disabledlist){

new-mailboxexportrequest -mailbox $mbx -FilePath "\\SERVER\PSTFileShare\$mbx.pst"

}
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
tomfontanillaAuthor Commented:
Thanks. I tried this but i got this error. Thoughts?


[PS] C:\Documents and Settings\Administrator.DOMAIN>Export-Mailbox -Identity Acc
ounting_Calendar@capcoverage.com -PSTFolderPath Y:\PSTFiles\username.pst
You are running on a 64-bit computer. To export to or import from a .pst file,
you must be running a 32-bit computer that has Outlook 2003 SP2 or later instal
led.
At line:1 char:1
0
 
Subhashish LahaCommented:
For multiple mailboxes, you can use below command

Get-Mailbox -OrganizationalUnit Marketing | Export-Mailbox -PSTFolderPath C:\PSTFiles

http://social.technet.microsoft.com/Forums/en-US/exchangesvrgeneral/thread/999d6f89-6878-4efc-9a49-5442275b61af

Read this article too

http://iamasysadmin.wordpress.com/2011/08/02/export-multiple-mailboxes/
0
 
AmitIT ArchitectCommented:
Which version of Exchange you are running, i gave it for 2010
0
 
tomfontanillaAuthor Commented:
subhashishlaha,

I need the specific user mailbox on the OU.

xxdcmast Idea is great but it's not working.
0
 
tomfontanillaAuthor Commented:
"Which version of Exchange you are running, i gave it for 2010"

Exchange 2007 SP1.
0
 
AmitIT ArchitectCommented:
Did you tried what i gave, it is with input file.
0
 
tomfontanillaAuthor Commented:
No because i do not have a disabled list.
0
 
Joseph DalyCommented:
Have you tried what the error message states?

You are running on a 64-bit computer. To export to or import from a .pst file,
you must be running a 32-bit computer that has Outlook 2003 SP2

Are you running a 32 bit computer? If not you will need to run these commands from a 32 bit machine with a user account that has appropriate exchange permissions.
0
 
tomfontanillaAuthor Commented:
I run this on the exchange server. This means I have to install the Exchgange management console to a 32 bit PC?
0
 
Joseph DalyCommented:
Yes, you would need install the exchange console and outlook on a 32 bit machine in order to export.
0
 
tomfontanillaAuthor Commented:
I have the exchange console running on my 64bit machine. I have to uninstall this 1st before installing the 32 bit version. But I'm having problem removing the  exchange console on my desktop, not sure which KB to uninstall.
0
 
tomfontanillaAuthor Commented:
Great response!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 7
  • 4
  • 3
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now