Scanning a mailbox and summarising message classes
Here is a script which will scan a particular mailbox through the default mailbox profile, and report on the structure it finds, along with the distribution of messages per message class.
The output looks like this :
Microsoft (R) Windows Script Host Version 5.7 Copyright (C) Microsoft Corporation. All rights reserved. Processing started at : 3/26/2012 11:32:38 AM Scanning mailbox : jeff1 ------------------------------------- Top of Information Store : 0 1Year : 0 1Year-testsubs : 1 s1 : 1 Calendar : 2 Contacts : 1 Conversation Action Settings : 0 Deleted Items : 9 Drafts : 0 Inbox : 199 100 items 2 : 4 1000 items : 9 EVArchiveSize : 0 modified ret cat : 10 s2 : 3 Journal : 0 Junk E-mail : 17 News Feed : 0 Notes : 0 Outbox : 0 Private1 : 0 Quick Step Settings : 0 RSS Feeds : 0 Sent Items : 60 Suggested Contacts : 0 Sync Issues : 0 Conflicts : 0 Local Failures : 0 Server Failures : 0 Tasks : 0 x1 : 0 J123 : 1 Personal Folders : 0 t1 : 19 Personal Folders 1 : 0 alpha1 : 1 Personal Folders 2 : 0 jongo1 : 2 --------------------------------------- Number of items in the mailbox : 339 Total size : 2425513 Bytes, 2368.67 Kbytes, 2.31 Mb Number of archived items : 250 Archived items size : 473986 Bytes, 462.88 Kbytes, 0.45 Mb Number of pending items : 0 Pending items size : 0 Byes, 0 Kbytes, 0 Mb --------------------------------------- Summary by Message Class: IPM.NOTE.ENTERPRISEVAULT.SHORTCUT - 1 - Size: 1784 bytes, 0 Mb IPM.NOTE - 250 - Size: 473919 bytes, 0.45 Mb IPM.APPOINTMENT - 85 - Size: 1124774 bytes, 1.07 Mb IPM.CONTACT - 1 - Size: 536 bytes, 0 Mb IPM.NOTE.SHANGY - 1 - Size: 819485 bytes, 0.78 Mb Processing finished at : 3/26/2012 11:32:38 AM
Further info:
- Save the attachment to this post as a .vbs file.
- Remember to edit it to put in the name of the Exchange server and mailbox for your environment.
- Run it using : cscript scanner.vbs, from a DOS command prompt
- Remember it uses CDO. (Which isn't installed by default on Outlook 2007+)
Published 14 years ago
Version 1.0