Solved

export-mailbox syntax

Posted on 2012-03-20
13
723 Views
Last Modified: 2012-05-21
looking to  export and clean the sent Items folder on a users mailbox, I have the syntax but its not working

example

Export-Mailbox -Identity user@example.com -TargetMailbox me@example.com -TargetFolder saved –IncludeFolders \sentitems

is this correct?
0
Comment
Question by:BMI-IT
  • 6
  • 4
  • 2
  • +1
13 Comments
 
LVL 8

Expert Comment

by:npinfotech
ID: 37744488
You might have to enable the account you're using with the Mailbox Import Export role:

http://www.exchangemaster.net/index.php?option=com_content&task=view&id=151&Itemid=1&lang=en
0
 
LVL 17

Assisted Solution

by:Spartan_1337
Spartan_1337 earned 500 total points
ID: 37744517
Syntax is wrong...
Export-mailbox is now New-MailboxExportRequest

http://technet.microsoft.com/en-us/library/ff607299.aspx
0
 
LVL 9

Expert Comment

by:ash007
ID: 37745991
0
 

Author Comment

by:BMI-IT
ID: 37767508
Tried the info contained in that link and getting this error


The term 'Export-Mailbox' is not recognized as the name of a cmdlet, function, script file, or operable program.
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:15
+ Export-Mailbox <<<<  -Identity me@mydomain.com -PSTFolderPath C:\joe.pst
    + CategoryInfo          : ObjectNotFound: (Export-Mailbox:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
0
 
LVL 17

Assisted Solution

by:Spartan_1337
Spartan_1337 earned 500 total points
ID: 37767681
OK.. as I stated, Export-Mailbox is not a valid command for Exchange 2010.
You need to use New-MailboxExportRequest.
Please see link on previous post for further instructions.
0
 

Author Comment

by:BMI-IT
ID: 37767692
ok should have mentioned that this is exchange 2010.

so im using

New-MailboxExportRequest -Mailbox user@domain -FilePath C:\pst\user.pst

the c: drive is on the exchange server (called exchange)

but i keep getting this error

A positional parameter cannot be found that accepts argument 'user@comain.com'.
    + CategoryInfo          : InvalidArgument: (:) [New-MailboxExportRequest], Para
    + FullyQualifiedErrorId : PositionalParameterNotFound,New-MailboxExportRequest
0
Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 
LVL 17

Assisted Solution

by:Spartan_1337
Spartan_1337 earned 500 total points
ID: 37768252
You are missing the needed rights. Please follow these directions.

http://technet.microsoft.com/en-us/library/ee633452.aspx
0
 
LVL 17

Expert Comment

by:Spartan_1337
ID: 37768316
Once you completed the rights, log off and log back on for it to take effect. You should be able to see and use the export command.
0
 

Author Comment

by:BMI-IT
ID: 37771232
Ok , instead of a group, could I assign rights to a user instead of a group?
0
 
LVL 17

Expert Comment

by:Spartan_1337
ID: 37771388
Yes, you can choose one user but it makes administration easier for a group.
0
 

Author Comment

by:BMI-IT
ID: 37800742
Thanks,

sorry if this sounds dumb,  would I use our administrator group (called administrator) to do do this?
 
We really only use one account  to admin exchange
0
 
LVL 17

Accepted Solution

by:
Spartan_1337 earned 500 total points
ID: 37800972
Yes, just use the "Administrators" group.
0
 
LVL 8

Expert Comment

by:npinfotech
ID: 37867189
Apologies, but the link I provided in the first response not only had the right syntax for 2010, but also details how to assign the proper rights and roles needed to perform the task.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
Read this checklist to learn more about the 15 things you should never include in an email signature.
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

910 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

17 Experts available now in Live!

Get 1:1 Help Now