cancel
Showing results for 
Search instead for 
Did you mean: 
Rob_Wilcox1
Level 6
Partner

I have produced a couple of folder/message scanners, and this is the latest one.  I had the need recently to count the number of folders in Virtual Vault, and this script will do that.

Normally Virtual Vault will contain all the folders that are in the users mailbox, however, you can have ones (over time) that don't exist in the mailbox any longer, but because there is archived content they will exist in Virtual Vault.  In addition you can create folders specifically in Virtual Vault, that don't exist in the mailbox.

So, the VV folder scanner was born.  It's very similar to the other ones that I did, but the main difference with this one is that it needs to have Outlook open, because it wants to piggy back on the current Outlook session.  Creating a new one, as you can see from the comment in the script, meant that I couldn't see the VV node, re-using the existing one means I could.

Modify the script near the top to have the name of the Exchange server, and the mailbox you want to login to.  In addition can you set DebuggingMode to 1, in order to get a list of every single folder that is touched.

The output will look similar to this :

 

 

 C:\temp>cscript scannerf2.vbs

Microsoft (R) Windows Script Host Version 5.7

Copyright (C) Microsoft Corporation. All rights reserved.

InfoStore Name : Vault - cs2 -- ID : 0000000038A1BB1005E5101AA1BB08002B2A56C2000

045564D53502E444C4C00000000004E495441F9BFB80100AA0037D96E0000000043003A005C00440

06F00630075006D0065006E0074007300200061006E0064002000530065007400740069006E00670

073005C006300730032005C004C006F00630061006C002000530065007400740069006E006700730

05C004100700070006C00690063006100740069006F006E00200044006100740061005C004B00560

053005C0045006E007400650072007000720069007300650020005600610075006C0074005C00330

03700390031003900410033003100460030003200320043003600340043003900450042003500420

0410030003800350045003400360045003300410039005C003100340035004100350031004200450

04500440043004600370035004300340031003800420038003300320036004500350042004500330

03500320045003200310031003100310030003000300030006500760073006900740065002E006D0

0640063000000

InfoStore Name : Public Folders -- ID : 0000000038A1BB1005E5101AA1BB08002B2A56C2

0000454D534D44422E444C4C00000000000000001C830210AA6611CD9BC800AA002FC45A06000000

455843483100D83521F3860000000100000014000000660000002F6F3D455620547261696E696E67

2F6F753D46697273742041646D696E6973747261746976652047726F75702F636E3D436F6E666967

75726174696F6E2F636E3D536572766572732F636E3D455843483100650078006300680031002E00

450056002E004C006F00630061006C0000000000

InfoStore Name : Mailbox - cs2 -- ID : 0000000038A1BB1005E5101AA1BB08002B2A56C20

000454D534D44422E444C4C00000000000000001B55FA20AA6611CD9BC800AA002FC45A0C0000004

558434831002F6F3D455620547261696E696E672F6F753D46697273742041646D696E69737472617

46976652047726F75702F636E3D526563697069656E74732F636E3D63733200D83521F3860000000

100000014000000660000002F6F3D455620547261696E696E672F6F753D46697273742041646D696

E6973747261746976652047726F75702F636E3D436F6E66696775726174696F6E2F636E3D5365727

66572732F636E3D455843483100650078006300680031002E00450056002E004C006F00630061006

C0000000000

InfoStore Name : Mailbox - non1 -- ID : 0000000038A1BB1005E5101AA1BB08002B2A56C2

0000454D534D44422E444C4C00000000000000001B55FA20AA6611CD9BC800AA002FC45A0C000000

4558434831002F6F3D455620547261696E696E672F6F753D46697273742041646D696E6973747261

746976652047726F75702F636E3D526563697069656E74732F636E3D6E6F6E3100D83521F3860000

000100000014000000660000002F6F3D455620547261696E696E672F6F753D46697273742041646D

696E6973747261746976652047726F75702F636E3D436F6E66696775726174696F6E2F636E3D5365

72766572732F636E3D455843483100650078006300680031002E00450056002E004C006F00630061

006C0000000000

Processing started at : 8/4/2011 3:57:16 AM

Scanning mailbox : CS2

-------------------------------------

Top of Personal Folders : 0

  Calendar : 0

  Inbox : 3

  Junk E-mail : 0

  Sent Items : 0

---------------------------------------

Number of items in the mailbox : 1197

Number of folders 7635

---------------------------------------

Processing finished at : 8/4/2011 3:57:22 AM 

Version history
Last update:
‎08-04-2011 01:58 AM
Updated by: