Solved

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

Posted on 2008-06-25
6
1,287 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 15

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 15

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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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 15

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

Do email signature updates give you a headache?

Do you feel like you are constantly making changes to email signatures? Are the images not formatting how you want them to? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today.

Join & Write a Comment

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
To show how to create a transport rule 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 >> Rules tab.:  To cr…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

759 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

24 Experts available now in Live!

Get 1:1 Help Now