Valhalla Legends Archive

Programming => General Programming => Topic started by: KrAzY_NuK on April 18, 2005, 03:17 PM

Title: Scripting & MS Exchange stuff
Post by: KrAzY_NuK on April 18, 2005, 03:17 PM
I need to do 2 tasks:
1. Find the size of a Public Folder (including all sub-folders).
2. Find the size of each individual users personal mailbox.

we are running Exchange 2000 on a Windows 2000 machine.  Has anyone ever come across any way to do this?  I've been looking all afternoon with not much help at all.

Thanks...
Title: Re: Scripting & MS Exchange stuff
Post by: MyndFyre on April 18, 2005, 06:57 PM
I googled "Exchange scripting size folder" and came up with this:

http://www.outlookexchange.com/articles/glenscales/mreport1.asp

You can also look through the Exchange SDK:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/e2k3/e2k3/wss_references_contentclasses.asp (schema)
and write a Windows Script Host script to traverse through the folder object given by the public folder.  I found relavent information in the subtopic urn:content-classes:folder.

Alternatively you can use the Exchange COM class CDO.Folder (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/e2k3/e2k3/_cdo_folder_coclass.asp?frame=true) or the COM interface IPublicStoreDB (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/e2k3/e2k3/_emo_ipublicstoredb_interface.asp?frame=true).

Not ever having used Exchange I hope this helps you out.