Solved

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

Posted on 2008-06-25
6
1,294 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
In this video we show how to create a Shared Mailbox 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 >> Sha…
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…

895 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

14 Experts available now in Live!

Get 1:1 Help Now