Returns information about the folder tree found on a computer running Microsoft Exchange Server 2003
On Error Resume NextstrComputer = "."Set objWMIService = GetObject("winmgmts:" _& "{impersonationLevel=impersonate}!\\" & strComputer & _"\ROOT\MicrosoftExchangeV2")Set colItems = objWMIService.ExecQuery _("Select * from Exchange_FolderTree")For Each objItem in colItemsWscript.Echo "Administrative group: " & _objItem.AdministrativeGroupWscript.Echo "Administrative noe: " & _objItem.AdministrativeNoteWscript.Echo "Associated public stores: " & _objItem.AssociatedPublicStoresWscript.Echo "Creation time: " & objItem.CreationTimeWscript.Echo "GUID: " & objItem.GUIDWscript.Echo "Has local public store: " & _objItem.HasLocalPublicStoreWscript.Echo "Last modification time: " & _objItem.LastModificationTimeWscript.Echo "MAPI folder tree: " & objItem.MAPIFolderTreeWscript.Echo "Name: " & objItem.NameWscript.Echo "Root folder URL: " & objItem.RootFolderURLWscript.EchoNext
This is a VB Script, this can be used by saving the file in .vbs file