Solved

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

Posted on 2008-06-25
6
1,307 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 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
Does Powershell have you tied up in knots?

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

 
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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

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…
A list of top three free exchange EDB viewers that helps the user to extract a mailbox from an unmounted .edb file and get a clear preview of all emails & other items with just a single click on mailboxes.
In this video we show how to create a Contact 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 Recipients >> Contact ta…
In this video we show how to create an Address List 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 Organization >> Ad…

739 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