Re: Alternative to reading public folders with WMI?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Glen Scales [MVP] (gscales_at_outlookexchange.com)
Date: 09/20/04


Date: Mon, 20 Sep 2004 16:20:39 +1000

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: Using WMI with SQL query and VBScript
    ... For Each obj In objs ... > optimizing the WMI queries that are sent to each computer since that is ... Say I have two separate WMI queries: ... > The first line runs a WMI query to get the Computer name, description, ...
    (microsoft.public.scripting.vbscript)
  • 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: WMI to get folder paths
    ... I am looking for a way to use WMI via VBScript to query a remote ... system for folder paths, specifically to get folders for a user that would ... Environmental variables such as %UserProfile% are specific to actual user sessions. ... You query the user's registry hive. ...
    (microsoft.public.scripting.vbscript)
  • 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)