Solved

power shell command: export multiple user mailbox to PST file

Posted on 2013-05-28
16
2,034 Views
Last Modified: 2013-05-29
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
Comment
Question by:tomfontanilla
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 4
  • 3
  • +1
16 Comments
 
LVL 35

Expert Comment

by:Joseph Daly
ID: 39201895
What version of exchange are you running?
0
 
LVL 35

Accepted Solution

by:
Joseph Daly earned 300 total points
ID: 39201897
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
 
LVL 43

Expert Comment

by:Amit
ID: 39201928
#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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

Author Comment

by:tomfontanilla
ID: 39201948
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
 
LVL 10

Expert Comment

by:Subhashish Laha
ID: 39201950
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
 
LVL 43

Expert Comment

by:Amit
ID: 39201957
Which version of Exchange you are running, i gave it for 2010
0
 

Author Comment

by:tomfontanilla
ID: 39201959
subhashishlaha,

I need the specific user mailbox on the OU.

xxdcmast Idea is great but it's not working.
0
 

Author Comment

by:tomfontanilla
ID: 39201962
"Which version of Exchange you are running, i gave it for 2010"

Exchange 2007 SP1.
0
 
LVL 43

Expert Comment

by:Amit
ID: 39201965
Did you tried what i gave, it is with input file.
0
 

Author Comment

by:tomfontanilla
ID: 39201970
No because i do not have a disabled list.
0
 
LVL 35

Expert Comment

by:Joseph Daly
ID: 39201971
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
 

Author Comment

by:tomfontanilla
ID: 39201987
I run this on the exchange server. This means I have to install the Exchgange management console to a 32 bit PC?
0
 
LVL 35

Expert Comment

by:Joseph Daly
ID: 39201994
Yes, you would need install the exchange console and outlook on a 32 bit machine in order to export.
0
 
LVL 10

Assisted Solution

by:Subhashish Laha
Subhashish Laha earned 200 total points
ID: 39201995
0
 

Author Comment

by:tomfontanilla
ID: 39202174
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
 

Author Closing Comment

by:tomfontanilla
ID: 39205208
Great response!
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
After hours on line I found a solution which pointed to the inherited Active Directory permissions . You have to give/allow permissions to the "Exchange trusted subsystem" for the user in the Active Directory...
In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question