I've been trying to write a powershell script for our Exchange 2007 server that has around 300 mailboxes. We occassionally have a requirement based upon the freedom of information act to disclose to a customer all of the information we hold electronically about them.
What I am trying to achieve is a method of searching across all mailboxes for a particular keyword "e.g. *Mr Smith*" contained within the email, and then to export this to a PST file.
I've been playing with Export-Mailbox and -PSTFolderPath methods, but I just keep going round in circles.
Does anyone know if this is possible? If not possible across the entire mailbox database, is there a script that would work on a single mailbox?