Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Export-Mailbox with Get-Maildatabase for specific mail database and mailbox

Posted on 2008-06-25
6
Medium Priority
?
1,322 Views
Last Modified: 2008-07-08
Mail Storage Groups can contain several Mail Databases or I can have on Mail Role several Storage Groups. How then can I export from a specific Mail Database/Storage Group.
When I use the command for the First Storage Group "Get-mailboxdatabase -identity "SRV-Exchange\First Storage Group\Mailbox Database" Export-Mailbox -Identity fvaltulini -PSTFolderPath D:\fvaltulini.pst"

Export-Mailbox : The input object cannot be bound to any parameters for the com
mand either because the command does not take pipeline input or the input and i
ts properties do not match any of the parameters that take pipeline input.
At line:1 char:102

Is this command (Export Mailbox") not compatible with Get-mailboxdatabase command?
0
Comment
Question by:jesaja
  • 3
  • 3
6 Comments
 
LVL 16

Assisted Solution

by:LegendZM
LegendZM earned 1600 total points
ID: 21871494
"Get-mailboxdatabase -identity "SRV-Exchange\First Storage Group\Mailbox Database" Export-Mailbox -Identity fvaltulini -PSTFolderPath D:\fvaltulini.pst"

The problem with your command is you're missing the pipe |

"Get-mailboxdatabase -identity "SRV-Exchange\First Storage Group\Mailbox Database" | Export-Mailbox -Identity fvaltulini -PSTFolderPath D:\fvaltulini.pst"


see this KB article: http://technet.microsoft.com/en-us/library/bb266964(EXCHG.80).aspx

0
 
LVL 7

Accepted Solution

by:
jesaja earned 0 total points
ID: 21871941
Sorry, in Shell I use it with this pipe line.

Error
Export-Mailbox : The input object cannot be bound to any parameters for the com
mand either because the command does not take pipeline input or the input and i
ts properties do not match any of the parameters that take pipeline input.
At line:1 char:99
+ Get-mailboxdatabase -identity "SRV-Exchange\First Storage Group\Mailbox Datab
ase" | Export-Mailbox  <<<< -Identity fvaltulini -PSTFolderPath D:\fvaltulini.p
st
0
 
LVL 16

Expert Comment

by:LegendZM
ID: 21871986
Why can't you just use this?

Export-Mailbox -Identity fvaltulini@yourdomain.com -PSTFolderPath D:\fvaltulini.pst

that will export the individual user

If you want to export everyone in a Database, you could use something like (I think this will work)

Exchange 2007 doesn't really reference "first storage group"

You could try
Get-mailboxdatabase -identity Mailbox Database | Export-Mailbox -Identity fvaltulini -PSTFolderPath D:\fvaltulini.pst

or

Get-Mailbox -Database DatabaseName | Export-Mailbox -PSTFolderPath C:\PSTFiles

Get-Mailbox -OrganizationalUnit OU-NAME | Export-Mailbox -PSTFolderPath C:\PSTFiles

This example exports the data from each mailbox to a separate .pst file located at C:\PSTFiles. The name of each .pst file will be <alias>.pst.



0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 7

Author Comment

by:jesaja
ID: 21872093
I just what to understand if I have more then one database in a Storage Group or more Storage Group how to export a mailbox to pst file.
0
 
LVL 16

Assisted Solution

by:LegendZM
LegendZM earned 1600 total points
ID: 21875975
You export it by Database name, you don't need to reference the storage group, but if you want you can use this.

-database with these values
  Database name
 Server name\database name
 Server name\storage group\database name

You would use -database, not -identity.

Get-mailboxdatabase -database "SRV-Exchange\First Storage Group\Mailbox Database" | Export-Mailbox -Identity fvaltulini -PSTFolderPath D:\fvaltulini.pst"


You can reference this page for syntax:
http://technet.microsoft.com/en-us/library/bb123685(EXCHG.80).aspx
http://technet.microsoft.com/en-us/library/aa998579(EXCHG.80).aspx


best of luck.
0
 
LVL 7

Author Comment

by:jesaja
ID: 21897195
The get-mailbox -database command with export-mailbox -identity switch is not working either.

best regards

0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

In this post, I will showcase the steps for how to create groups in Office 365. Office 365 groups allow for ease of flexibility and collaboration between staff members.
There can be many situations demanding the conversion of Outlook OST files to PST format and as such, there is no shortage of automated tools to perform this conversion. However, what makes Stellar OST to PST converter stand above the rest? Let us e…
In this video we show how to create a mailbox database 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 Servers >> Data…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Suggested Courses

963 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