So... I need to locate all instances of an email that contain a specific email attachment (message-id204.doc) in my Exchange 2013 environment. I have 6 Mailbox Databases and wanted to see if we can get some kind of report on who received it, then possibly delete the attachment on the back end.
I'm trying Get-mailbox -database 'DB1' | export-mailbox –AttachmentFilenames "message-id204.doc" -TargetFolder "InfectedAttachment" -TargetMailbox "QuarantineMBX"
and receive the following error;
export-mailbox : The term 'export-mailbox' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:32
+ Get-mailbox -database 'DB1' | export-mailbox –AttachmentFilenames "* ...
+ CategoryInfo : ObjectNotFound: (export-mailbox:String) , CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Thanks in advance.