mailbox size (EWS)

Status
Not open for further replies.
A

Anonymous

How can a program determine the size of users mailboxes?

Using EWS/Exchange 2007.
 
Any reason you can't use the shell for this? Get-MailboxStatistics will give

you this for your users.

Oliver


> How can a program determine the size of users mailboxes?

> Using EWS/Exchange 2007.
 
I need to do it programmatically, and display the mailbox sizes in another

program. Which "shell" do you suggest to use as API? PowerShell? Isn't it

dotnet-based anyway?

"Oliver Moazzezi [MVP]" <o.moazzezino@spamfreenet.co.uk> wrote in message

news:eNaJ$WMyJHA.4164@TK2MSFTNGP03.phx.gbl...
> Any reason you can't use the shell for this? Get-MailboxStatistics will
> give you this for your users.

> Oliver
>
> > How can a program determine the size of users mailboxes?
>

>> Using EWS/Exchange 2007.


>
 
Yes Powershell. Otherwise you'll have to wait for an EWS Developer Guru to

chime in.

Oliver


> Which "shell" do you suggest to use as API? PowerShell? Isn't it
> dotnet-based anyway?
 
Like previous API's there is no single property you can access to get the

mailbox size using EWS you would have to loop through every folder in a

mailbox to calculate the size eg do a deep folder traversal then access each

folder.

A better way of getting mailbox sizes is to use the Exchange Management

Shells get-mailboxstatistics cmdlet which you can invoke from a .NET

program. You will need to have the Management Tool installed on the machine

your running this from see

http://msdn.microsoft.com/en-us/library/bb332449.aspx

Cheers

Glen

"Anonymous" <anon@noemail.com> wrote in message

news:erb5dfMyJHA.2324@TK2MSFTNGP06.phx.gbl...
> I need to do it programmatically, and display the mailbox sizes in another
> program. Which "shell" do you suggest to use as API? PowerShell? Isn't it
> dotnet-based anyway?

> "Oliver Moazzezi [MVP]" <o.moazzezino@spamfreenet.co.uk> wrote in message
> news:eNaJ$WMyJHA.4164@TK2MSFTNGP03.phx.gbl...
> > Any reason you can't use the shell for this? Get-MailboxStatistics will
> > give you this for your users.
>

>> Oliver
> >
> >> How can a program determine the size of users mailboxes?
> >
>>> Using EWS/Exchange 2007.

>

>>

>
 
However, PowerShell is only available remotely with Exchange 2010, since PowerShell 1.0 did not support remoting. That means the application would have to be run ON the Exchange Server, which is almost never an option. Also almost never an option is upgrading the server to PowerShell 2.0 (I've done it, but no Exchange Server admin will go for it)

So, the fact remains that there is no easy way to get mailbox sizes and counts from Exchange 2007.

Exchange 2003 exposes it easily via WMI

Exchange 2010 exposes it easily via PowerShell

but 2007... all the solutions I've seen involve a lower-level solution using MAPI or EWS and recursion/iteration over all folders in each mailbox. It seems incredibly unfortunate that 2007 should be left out, (big oops there). Any alternatives out there?
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
M Mailbox Size Outlook.com or Outlook 2011 Using Outlook 1
M Outlook 2016 outlook vba to look into shared mailbox Outlook VBA and Custom Forms 0
D Send on behalf of does not store the base mailbox Using Outlook 0
S Email Macros to go to a SHARED Outlook mailbox Draft folder...NOT my personal Outlook Draft folder Using Outlook 2
C Outlook 365 Multiple different Signatures on Shared Mailbox Using Outlook 0
P Tweak vba so it can target another mailbox Outlook VBA and Custom Forms 1
S Outlook 365 Shared mailbox contact group member numbers not matching Using Outlook 0
S Copy Tasks/Reminders from Shared Mailbox to Personal Tasks/Reminders Outlook VBA and Custom Forms 0
P Shortcut Pane - add shortcut to Office365 group mailbox Using Outlook 1
R How to get the Items object of the default mailbox of a specific account in a multiple account Outlook? Outlook VBA and Custom Forms 0
R Assign Categories "Round Robin" style but in a shared mailbox but on specific emails only Outlook VBA and Custom Forms 8
C Your mailbox has been temporarily moved ... Using Outlook 2
P Auto assign shared mailbox Outlook VBA and Custom Forms 1
A VBA macro for 15 second loop in send and received just for 1 specific mailbox Outlook VBA and Custom Forms 1
R VBA for copying sent email to current folder under a shared mailbox Outlook VBA and Custom Forms 17
T How to Export mailbox from Outlook 2019 to MBOX format? Using Outlook 1
F Delete/create/reset Exchange mailbox on Outlook.com Using Outlook.com accounts in Outlook 3
A New email notification on shared mailbox Outlook VBA and Custom Forms 0
N Shared mailbox in cached mode Using Outlook 0
B Vba to monitor time to respond to emails using a shared mailbox Outlook VBA and Custom Forms 5
D Shared Mailbox question Exchange Server Administration 1
F How to show assigned tasks under certain mailbox? Using Outlook 4
S Import contacts to a shared mailbox Outlook VBA and Custom Forms 2
D Delete Emails from Senders in Shared Mailbox Outlook VBA and Custom Forms 1
O Office 365 - Outlook - Password protect your mailbox Using Outlook 7
C Changed By field not displaying individual user's name in O365 Shared Mailbox Using Outlook 9
D Move Emails between Folders in Separate Mailbox Outlook VBA and Custom Forms 12
M other user's mailbox won't open, forms disappeared Using Outlook 42
K Lost Rules. Assistant accesses my mailbox. Disappeared Using Outlook 0
S Recovering permanently deleted folder from shared mailbox Using Outlook 1
J Outlook - 2013 - Error msg when copying folders from Online Archives to another user's mailbox Using Outlook 0
Q VBA Script to move item in secondary mailbox Outlook VBA and Custom Forms 2
I Application_NewMailEx for shared mailbox Outlook VBA and Custom Forms 1
Diane Poremsky Monitor secondary mailbox folder for new messages Using Outlook 0
Mark White vba to create a shared mailbox folder Outlook VBA and Custom Forms 3
D VBA macro printing attachments in shared mailbox Outlook VBA and Custom Forms 1
oliv- Treat once an email with the ItemAdd event in a shared mailbox Outlook VBA and Custom Forms 2
K VBA to measure response time for each emails in a shared mailbox Outlook VBA and Custom Forms 11
M Upgrade in Progress. Your mailbox is currently being optimized as part of upgrade to Outlook 2010 Using Outlook 9
S Shared Mailbox Alert Outlook VBA and Custom Forms 7
O VBA rule on multiple computers using shared mailbox Outlook VBA and Custom Forms 1
P Migrate Office 365 mailbox to a different on-premises domain Using Outlook 1
T Checking mailbox emails Outlook VBA and Custom Forms 0
F Room Mailbox Reply Exchange Server Administration 0
D Shared Mailbox with mail item marked as "private" Using Outlook 0
Diane Poremsky Save Sent Items in Shared Mailbox using an Exchange Server Cmdlet Using Outlook 0
Diane Poremsky Sending Email from a Secondary Exchange Mailbox Using Outlook 0
J Automatically Move Old Items from a Shared Mailbox to a .PST on a Network Drive Outlook VBA and Custom Forms 1
P Viewing Meeting Organizer on room Mailbox Using Outlook 1
Van Fog Get items in search folder for shared mailbox Outlook VBA and Custom Forms 3

Similar threads

Back
Top