Solved

power shell command: export multiple user mailbox to PST file

Posted on 2013-05-28
16
1,942 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
  • 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 41

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
 

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 41

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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 41

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Junk folder 23 109
exchange, outlook 6 28
Bounce Back Message From Specific Domain 13 34
View More Items in Exchange - Outlook 2016 3 18
Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
In this video we show how to create a Distribution Group 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 Recipients >>…
In this video we show how to create a Contact 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 Recipients >> Contact ta…

707 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now