Powershell query to count search term for mailbox
I am using a powershell script to extract emails for a discovery (Exchange 2007 SP2): export-mailbox -id [user] -allcontentkeywords "search term" -pstfolderpath c:\temp -ExcludeFolders "\Junk E-Mail","\Contacts","\Deleted Items" -TargetMailbox Can anyone point me how to use powershell to count how many items will be exported prior to actually running this script? thanks
April 24th, 2012 1:15pm

similar question here: http://social.technet.microsoft.com/Forums/en-US/exchangesvradmin/thread/fb37615b-fe3c-4538-b22d-4812991b0e49 I wish I could be more help, but I don't have a 2007+outlook box setup to see what the output is...
Free Windows Admin Tool Kit Click here and download it now
April 24th, 2012 4:22pm

Hi LarryS56, Per my know, there is no direct way or cmdlets could retrieve the amounts for the item before actually running the "export-mailbox" in exchange 2007. Maybe could counts them after the action. Like mike referred, use the indrect way. Regards! TechNet Subscriber Support in forum if you have any feedback on our support, please contact tngfb@microsoft.com Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Gavin TechNet Community Support
April 25th, 2012 5:42am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics