bill1282
asked on
Email search in Exchange 2007
If a sender sends an email to multiple recipients and a record request has been requested, Is there a way to search for the email and all the recipients it was sent to in Exchange 2007?
Thank you,
Bill
Thank you,
Bill
Another option is to use the "get-mailbox" cmd and then pipe the Export-Mailbox parameter. Check these out for more details
http://msexchangeteam.com/archive/2006/12/18/431934.aspx
http://technet.microsoft.com/en-us/library/aa998579(EXCHG.80).aspx
http://msexchangeteam.com/archive/2006/12/18/431934.aspx
http://technet.microsoft.com/en-us/library/aa998579(EXCHG.80).aspx
ASKER
Trying to run this command
PS> get-mailbox –Database J:\Program Files\Microsoft\Exchange Server\Mailbox\First Storage Group\Mailbox Database.edb | Export-Mailbox –SubjectKeywords "Discovery Keywords" –TargetMailbox Administrator –TargetFolder 'MyData'
getting a very long error[PS] C:\>get-mailbox -Database J:\Program Files\Microsoft\Exchange Server\Mailbo
x\First Storage Group\Mailbox Database.edb | Export-Mailbox -SubjectKeywords "Di
scovery Keywords" -TargetMailbox Administrator -TargetFolder 'MyData'
Get-Mailbox : A positional parameter cannot be found that accepts argument 'Fil
es\Microsoft\Exchange'.
At line:1 char:12
+ get-mailbox <<<< -Database J:\Program Files\Microsoft\Exchange Server\Mailbo
x\First Storage Group\Mailbox Database.edb | Export-Mailbox -SubjectKeywords "D
iscovery Keywords" -TargetMailbox Administrator -TargetFolder 'MyData'
+ CategoryInfo : InvalidArgument: (:) [Get-Mailbox], ParameterBin
dingException
+ FullyQualifiedErrorId : PositionalParameterNotFoun d,Microsof t.Exchange .M
anagement.RecipientTasks.G etMailbox
What could I be doing wrong?
Thank you,
Bill
PS> get-mailbox –Database J:\Program Files\Microsoft\Exchange Server\Mailbox\First Storage Group\Mailbox Database.edb | Export-Mailbox –SubjectKeywords "Discovery Keywords" –TargetMailbox Administrator –TargetFolder 'MyData'
getting a very long error[PS] C:\>get-mailbox -Database J:\Program Files\Microsoft\Exchange Server\Mailbo
x\First Storage Group\Mailbox Database.edb | Export-Mailbox -SubjectKeywords "Di
scovery Keywords" -TargetMailbox Administrator -TargetFolder 'MyData'
Get-Mailbox : A positional parameter cannot be found that accepts argument 'Fil
es\Microsoft\Exchange'.
At line:1 char:12
+ get-mailbox <<<< -Database J:\Program Files\Microsoft\Exchange Server\Mailbo
x\First Storage Group\Mailbox Database.edb | Export-Mailbox -SubjectKeywords "D
iscovery Keywords" -TargetMailbox Administrator -TargetFolder 'MyData'
+ CategoryInfo : InvalidArgument: (:) [Get-Mailbox], ParameterBin
dingException
+ FullyQualifiedErrorId : PositionalParameterNotFoun
anagement.RecipientTasks.G
What could I be doing wrong?
Thank you,
Bill
you don't need to put in the full path to the DB as you did above, i.e. just put the DB name in instead and if you are unsure of how the system sees the database name, just run Get-MailboxDatabase and it will list all database names.
as per this article http://technet.microsoft.com/en-us/library/bb123685(EXCHG.80).aspx these are the valid input values that you can use to designate the database, but like I said above just put in the database name instead of the full path and name and you should be good to go.
* GUID of the database
** Database name
** Server name\database name
** Server name\storage group\database name
NOTE: If you do not specify the server name, the cmdlet will search for the database on the local server. If you have multiple databases with the same name on the same server, you must specify the storage group.
as per this article http://technet.microsoft.com/en-us/library/bb123685(EXCHG.80).aspx these are the valid input values that you can use to designate the database, but like I said above just put in the database name instead of the full path and name and you should be good to go.
* GUID of the database
** Database name
** Server name\database name
** Server name\storage group\database name
NOTE: If you do not specify the server name, the cmdlet will search for the database on the local server. If you have multiple databases with the same name on the same server, you must specify the storage group.
ASKER
I tried all 3, the database is on a different drive could that be the problem?
The command Get-MailboxDatabase brings back the name as Mailbox Database
The command Get-MailboxDatabase brings back the name as Mailbox Database
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That worked thank you for your help!
Happy to assist ad thanks for the points
If you ever need to contact me check out my profile for contact information
If you ever need to contact me check out my profile for contact information
Get-messageTrackinglog
To find the message and then
Get-messageID
to see details about the message.