Solved

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

Posted on 2008-06-25
6
1,309 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
[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
  • 3
  • 3
6 Comments
 
LVL 16

Assisted Solution

by:LegendZM
LegendZM earned 400 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
 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

 
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 400 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

Is Your AD Toolbox Looking More Like a Toybox?

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.

Question has a verified solution.

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

This article explains how to install and use the NTBackup utility that comes with Windows Server.
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 Accepted Domain 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 >> Ac…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Suggested Courses

617 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