Need to get a list of Exchange users & connceted mailboxes

How would I dump a list from Exchange of users & any connected mailboxes they might have?

CSV format is fine.

TIA
someITGuyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

someITGuyAuthor Commented:
I can't spell connected...
0
N-WCommented:
Which version of Exchange?
For 2010/2013, try:
Get-MailboxServer -Identity [server] | Get-MailboxStatistics | Select-Object Servername, Databasename, DisplayName, @{expression={$_.TotalItemSize.Value.ToMB()}},StorageLimitStatus,LastLogonTime, LastLoggedOnUserAccount,ItemCount, DeletedItemCount | Export-Csv C:\ExchangeUserStats.csv

Open in new window

Change [server] with the hostname of the mailbox server you wish to query.
0
Mohammed KhawajaManager - Infrastructure:  Information TechnologyCommented:
Or you could download PowerGUI and install Exchange plug-ins.  Then you could get mostl common reports without knowing PowerShell.
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Chinthaka_ShameeraCommented:
You can delete the Calendar Contents via the Powershell. Please use below cmdlet and url.

Search-Mailbox –identity username –SearchQuery kind:meetings –DeleteContent


http://howexchangeworks.com/2012/11/delete-all-calendar-entries-in-an-exchange-2010-mailbox.html

Regards
0
Mahesh SharmaCommented:
If I understand correctly you are asking list of exchange mailboxes to csv format

1. Get-Mailbox -resultsize unlimited | Select Alias, Server, Database | Export-Csv dump.csv

2. By any connected mailbox I think u r asking any mailbox the have permission on, use below:

You can configure auditing in see event log for mailbox access logs.

set-EventLogLevel  "mailbox  server name"\MSExchangeIS\9000 Private\Send As  -level low

http://social.technet.microsoft.com/Forums/en-US/exchangesvradmin/thread/9d2f4b24-ae17-49b4-a43b-88f7ced07840/
0
Chinthaka_ShameeraCommented:
Sorry, I put an answer should not be here. Please delete it.
0
someITGuyAuthor Commented:
By connected mailboxes I mean shared mailboxes.
0
Mahesh SharmaCommented:
Use Below cmdlet:

Get-Mailbox -resultsize unlimited | Select Alias, Server, Database | Export-Csv dump.csv



Get-Mailbox -ResultSize unlimited | Get-MailboxPermission | ?{($_.AccessRights -eq "FullAccess") -and ($_.User -like 'DOMAIN\user') -and ($_.IsInherited -eq $false)} | ft Id*


Let me know if it work for u
0
someITGuyAuthor Commented:
My apologies, I was not clear on what I was looking for.

I was trying to get the size of individual folders in a users mailbox.

I ended up finding this script from Shay Levy:



function Get-MailboxFolder($folder)
{
"{0}: {1}" -f $folder.name, $folder.items.count

foreach ($f in $folder.folders)
{
Get-MailboxFolder $f
}
}


$ol = new-object -com Outlook.Application
$ns = $ol.GetNamespace("MAPI")
$mailbox = $ns.stores | where {$_.ExchangeStoreType -eq 0}
$mailbox.GetRootFolder().folders | foreach { Get-MailboxFolder $_}



•      One gotcha on this, If you receive error message:
Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80080005
Make sure that Outlook and Powershell are either both running as a standard user (not elevated) or that they are both running elevated as Administrator. They need to be running at the same integrity level to avoid that error.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
someITGuyAuthor Commented:
found solution from outside source.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.