from past few days I tried to writing a script which shows me that how many folders I do have in my Outlook and total number of emails stored on them.
I get only 50% success so far, I am able to see the folders but somehow not able to see the total number of items store in them
Then I tried searching the Internet and found a script which does it. This script is written by well knows PowerShell MVP “Shay levy”
This script solve my problem and then i thought i should share it with you.
you can download the script from here: http://dl.dropbox.com/u/17858935/ListOutlook_Folders_Total_Emails.zip
Screenshot of the output when you run script.
Before: When first time I run the Script
After: I removed 2 email from my “Junk-Junk” folder and test it again and precise result