June 2005
Intermediate to advanced
464 pages
13h 2m
English
You want to see properties of the public folder trees (or TLHs) on your servers.
Launch the Exchange System Manager (Exchange System Manager.msc).
In the left pane, expand the appropriate Administrative Groups container.
Expand the Folders node.
Right-click the public folder TLH you're interested in (the default MAPI TLH is named Public Folders).
Select Properties.
' 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 ifThere 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 ...