Avatar of officertango
officertango
 asked on

exchange 2007 inbox report

I am running exchange 2007, I need to run a report for all mailbox size for Inbox (excluding subfolder), deleted items and Sent items Can someone provide me the command?

thanks
ExchangeActive Directory

Avatar of undefined
Last Comment
officertango

8/22/2022 - Mon
SOLUTION
A Karelin

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
officertango

ASKER
I am only interested in the root level size of Inbox, not subfolders, for all mailboxes. I can't find a command string for that. Is that possible?

thanks
A Karelin

Do you want to know the size of inboxes for all mailboxes like a sum?
I think you cannot do it with one coomand.
You can do for each mailbox
Get-MailboxFolderStatistics mailboxname -FolderScope Inbox | select foldersize, folderpath | Wher
e-Object {$_.folderpath -eq "/Inbox"}
and sum them.
officertango

ASKER
I want to know the inbox only, without subfolder for each mailbox. I do not want the sum of all inbox.  I hope I explained it well.

Thanx
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
A Karelin

Ok! Try my version of powershell command. It is only for inbox without subfolders, because with subfolders that command look like Get-MailboxFolderStatistics mailboxname -FolderScope Inbox | select FolderandSubFolderSize ...
officertango

ASKER
thanks for all your help.
I can't figure out how to get the command to run for all users. What is the command srting? Also where does the file gets dump once script finished?


thanks
inbox-sniptool.JPG
ASKER CERTIFIED SOLUTION
A Karelin

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
officertango

ASKER
I created a mailboxstats.ps1 file with the text that you sent and placed on desktop of server, than I open Exchange management Shell and ran mailboxstats.ps1. It completed the script but I do not know where the output file is. It is not on desktop??

thanks for all your help
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
A Karelin

There is output in console.
officertango

ASKER
This is what I see within the powershell, and it is not completed. Does it not output to a file?


thanks
Capture10.JPG
A Karelin

Try in ps1 file instead "$report" put "$report | export-csv c:\scripts\mailboxstats.csv"
or run like mailboxstats.ps1 > c:\scripts\output.txt
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
officertango

ASKER
na