9.7. Creating and Deleting Public Folders
Problem
You want to create or remove public folders from a public folder tree.
Solution
Using a graphical user interface
To create a folder, do the following:
Launch the Exchange System Manager (Exchange System Manager.msc).
In the left pane, expand the appropriate Administrative Groups container.
Expand the Folders node, then expand the container for the TLH where you want the new folder created.
Right-click the TLH container and select New→ Public Folder.
When the folder properties dialog appears, type a name into the Name field.
Optionally, switch to the Replication tab and use the Add and Remove buttons to control which servers have replicas of the newly created folders.
Click OK.
To delete a folder, do the following:
Launch the Exchange System Manager (Exchange System Manager.msc).
In the left pane, expand the appropriate Administrative Groups container.
Expand the Folders node, then expand the container for the TLH where you want the new folder created.
Find the folder you want to remove, right-click it, and select Delete.
Using VBScript
' This code creates a folder with the specified name at the top level
' of the MAPI TLH.
' ------ SCRIPT CONFIGURATION ------
strFolderName = "<folderName>" ' e.g., "Bad Jokes" ' ------ END CONFIGURATION --------- ' Get the default domain name. This is not necessarily ' the same as the AD domain name, which is why we have to ' get it from the recipient policy object Set objDefaultPolicy = GetObject( _ "LDAP://< ...