Re: Alternative to reading public folders with WMI?

From: Andrew Gomes (andrewNOSPAMgomes_at_hotNOSPAMmail.com)
Date: 09/20/04


Date: Mon, 20 Sep 2004 18:30:35 +1000

Hi Glen,

I will try this tomorrow and let the group know the results.

Thanks for the info - I had almost given up hope!

"Glen Scales [MVP]" <gscales@outlookexchange.com> schrieb im Newsbeitrag
news:ud%23N2ntnEHA.3900@TK2MSFTNGP10.phx.gbl...
> If you want to speed up your WMI queries you should look at making the
> query
> Semi-Synchronous have a look at
> http://www.huntland.co.uk/Downloads/WMI/AsyncOperations.html which details
> what to do and why the current queries run so slow.
>
> There are other options to WMI depending on what you are trying to do, if
> your just want to list the names of the folder you can adapt the scripts
> used in the following KB
> http://support.microsoft.com/default.aspx?scid=kb;en-us;320071 .This gives
> you methods to a recursively do a shallow traversal of a folder hierarchy
> (fancy name for a mailbox) you just need to adapt it to instead point to
> the
> public folder tree and instead of working out the foldersize get it to
> output the folder name.
>
> Cheers
> Glen
>
> "Andrew Gomes" <andrewgomes@hotmail.com> wrote in message
> news:2qsavhF13lnvmU1@uni-berlin.de...
>> Does anyone know if there is an alternative to reading Exchange 2003
> public
>> folders with WMI?
>>
>> I am using WMI in VB.NET to read a list of public folders on an Exchange
>> 2003 server. My problem is that it is INCREDIBLY slow!!! It seems to
> reads
>> in chunks from the server with a long delay between "chunks." The other
>> problem is that the server has over 60,000 public folders! (So you can
>> imagine how long this takes!)
>>
>> Is there an alternative to WMI or does anyone know how to speed up the
>> WMI
>> query?
>>
>> Many thanks!
>>
>>
>
>



Relevant Pages

  • RE: Newbie: Edit only files with a certain extension in a given folder?
    ... you can use either FileSystemObject or WMI to enumerate all the files with a certain extension in a given folder. ... I would prefer the WMI method as it gives you great control on what you are searching for. ... 'Get the current string and the replacement string from the user... ...
    (microsoft.public.scripting.wsh)
  • Re: VBA, OCX and system folders
    ... Here's some sample code of how to use WMI to get you a listing of files ... > try to use it within VBA and Microsoft Word it fails. ... > Another folder that it cannot get access to is the users temporary ...
    (microsoft.public.word.vba.beginners)
  • RE: WinMgmt could not initialize the core parts
    ... I deleted the wrong folder. ... BUT I'm still getting other WMI type errors. ... Event Type: Error ... Windows couldn't log the RSoP session status. ...
    (microsoft.public.windows.server.general)
  • Restoring WMI
    ... My WMI functionality is not working correctly. ... Windows suggest to correct ... \System32\Wbem\Repository folder become corrupted. ... In the right pane of the Computer Management console, ...
    (microsoft.public.windowsxp.wmi)
  • Re: count items in public folder, from code on webserver
    ... I will investigate the WMI approach and post back. ... WMI class and the messagecount propertie to retrieve the number of message ... in a folder see ... Exoledb will only run locally on a Exchange server so the code you have ...
    (microsoft.public.exchange.development)