Solved

Exchange Power Shell

Posted on 2013-05-20
13
288 Views
Last Modified: 2014-06-11
I am trying to Export e-mail out of my Exchange server thru the Power Shell.....I have found the commands from MS...but cannot get them to work!!!!!!

I am exporting a user to the D:\PST folder with a specific date range and cannot get this to work...can someone give me some guidance?

Here are some of the commands I am trying to running:(Where "Usename" is the user)

export-mailbox -identity username -startdate "01/01/1990" -enddate "04/18/2013" -pstfolderpath d:\pst

export-mailbox -identity username -startdate "january/01/1990" -enddate "April/18/2013" -targetfolder d:\pst\username

export-mailbox -identity username -startdate "jan
uary/01/1990" -enddate "April/18/2013" -targetfolder d:\pst


any help????

Thanks!
0
Comment
Question by:LFSPAdmin
  • 5
  • 3
13 Comments
 
LVL 4

Expert Comment

by:bepsoccer1
Comment Utility
What version of exchange are you running?  Do you have outlook installed on the server you are running the command from?  If you are running exchange 2007 you will need to do this from a 32bit OS.  If running exchange 2010 you will need to run it from a 64bit OS with 64bit outlook and use command New-MailboxExportRequest.
0
 

Author Comment

by:LFSPAdmin
Comment Utility
Sorry...we are running Exch 2007...and no I do not have Outlook installed on our Exchange Server.

if the OS is 64bit...how can I run on 32bit?....can you install Exchange Management Shell on another system?

Thanks!
0
 
LVL 16

Accepted Solution

by:
Rajitha Chimmani earned 250 total points
Comment Utility
Yes. you can install it on a 32-bit machine on domain. Below are the pre-requisites which made my export to PST successful.

1.      Windows 7 32-bit operating system.
2.      Microsoft Office Outlook 2010.
3.      32-bit Exchange 2007 SP1 or later management tools.
4.      The User Account Control properties must be set to “Never notify”
6.      Make sure the account has full access to the folder C:\Program Files\Microsoft\Exchange Server\Logging\
7.      Account must have full access on the mailbox to be exported (Add-MailboxPermission)
8.      The account running the command must be an Exchange Organization Administrator or an Exchange Server Administrator.
0
 
LVL 4

Assisted Solution

by:bepsoccer1
bepsoccer1 earned 250 total points
Comment Utility
yes, you will need to download the 32bit Exchange Management Tools and install outlook on a remote machine and then run the command.  You will not be able to do it locally.  http://www.microsoft.com/en-us/download/details.aspx?id=11876
0
Want to promote your upcoming event?

Are you going to an event? Are you going to be exhibiting at a tradeshow? Talking at a conference? Using a promotional banner in your email signature ensures that your organization’s most important contacts stay in the know and can potentially spread the word about the event.

 

Author Comment

by:LFSPAdmin
Comment Utility
that did it...I also ran into the issue of permission....so had to add the following string.

add-mailboxpermission -Id "<mailbox>" -User "<admin user account>" -AccessRights FullAccess -Deny:$false


Thanks Guys!!!
0
 
LVL 4

Expert Comment

by:bepsoccer1
Comment Utility
Really? I get no credit?
0
 

Author Comment

by:LFSPAdmin
Comment Utility
looks like he beat you by one second :-)

new at this....should 1/2 go to you and 1/2 go to him?

how do I fix it.
0
 

Author Comment

by:LFSPAdmin
Comment Utility
that did it...I also ran into the issue of permission....so had to add the following string.

add-mailboxpermission -Id "<mailbox>" -User "<admin user account>" -AccessRights FullAccess -Deny:$false


Thanks Guys!!!
0
 

Author Comment

by:LFSPAdmin
Comment Utility
I have no clue what I am doing here!@.......YES i want to split it between the 2 answers...and clicked multi answers and it give 500 points to one and not the other....errrrrrr
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
how to add IIS SMTP to handle application/Scanner relays into office 365.

762 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

10 Experts available now in Live!

Get 1:1 Help Now