Skip to Main Content
Exchange Server Cookbook
book

Exchange Server Cookbook

by Paul Robichaux, Missy Koslosky, Devin L. Ganger
June 2005
Intermediate to advanced content levelIntermediate to advanced
464 pages
13h 2m
English
O'Reilly Media, Inc.
Content preview from Exchange Server Cookbook

9.6. Getting Properties of the Public Folder Tree

Problem

You want to see properties of the public folder trees (or TLHs) on your servers.

Solution

Using a graphical user interface

  1. Launch the Exchange System Manager (Exchange System Manager.msc).

  2. In the left pane, expand the appropriate Administrative Groups container.

  3. Expand the Folders node.

  4. Right-click the public folder TLH you're interested in (the default MAPI TLH is named Public Folders).

  5. Select Properties.

Using VBScript

' This code displays selected properties of TLHs on a server
' ------ SCRIPT CONFIGURATION ------
 strComputerName = "<serverName>"     ' e.g., "cyclone"
' ------ END CONFIGURATION ---------

  strE2K3WMIQuery = "winmgmts://" & strComputerName &_
    "/root/MicrosoftExchangeV2"
  
  Set wmiService = GetObject(strE2K3WMIQuery)
  Set treeList = wmiService.InstancesOf("Exchange_FolderTree")
  
  If (treeList.Count > 0) Then
   For Each tree In treeList
      wscript.echo " Tree '" & tree.name & "'"
      wscript.echo "  Created:       " & tree.CreationTime
      wscript.echo "  Admin note:    " & tree.AdministrativeNote
      wscript.echo "  Associated stores: " & _
                 UBound(tree.AssociatedPublicStores) & " total"
      For i = 0 To UBound(tree.AssociatedPublicStores)
        wscript.echo "     " & i & "==> " & _
        tree.AssociatedPublicStores(i)
      next
   next
  WScript.Echo "Done processing folders."

  End if

Discussion

There aren't that many properties associated with public folder TLHs, but the ones that do exist are pretty interesting. For example, you can see a list of all the public folder stores associated ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft® Exchange Server 2010: Best Practices

Microsoft® Exchange Server 2010: Best Practices

Siegfried Jagott, Joel Stidley
Microsoft® Exchange Server 2003 Unleashed

Microsoft® Exchange Server 2003 Unleashed

Rand H. Morimoto - MCSE, Joe R. Coca, CISSP Kenton Gardinier - MCSE MCSA, MCSA Michael Noel - MCSE+I
Microsoft® Exchange Server 2013 Unleashed

Microsoft® Exchange Server 2013 Unleashed

Rand Morimoto, Michael Noel, Guy Yardeni, Chris Amaris, Andrew Abbate

Publisher Resources

ISBN: 0596007175Errata Page