Do you need public folders? If you aren't already using public folders, chances are that you don't need them and won't implement them in your organization. Still not sure if you'll use public folders? Check out the Exchange Team blog Updated Exchange Public Folder Guidance.
Note: |
|---|
|
The content of each blog and its URL are subject to change without notice. The content within each blog is provided "AS IS" with no warranties, and confers no rights. Use of included script samples or code is subject to the terms specified in the Microsoft Terms of Use.
|
For those of you who want to use public folders, there are three basic steps you'll need to take to get started:
-
Create the public folder database
-
Modify public folder database settings
-
Create public folders
Step 1: Create the public folder database
You can't create new public folders unless you have public folder infrastructure. That means that you need to have a public folder database in place and mounted. When you use the New-PublicFolderDatabase cmdlet to create a public folder database, you basically set only the name and storage group for the new database.
In addition to creating a public folder database, you may decide to create this database in a separate storage group. For more information about how to create a storage group, see How to Create a New Storage Group.
Create and mount a public folder database
-
This command creates a public folder named PFDatabase on the First Storage Group:
New-PublicFolderDatabase -Name "PFDatabase" -StorageGroup "First Storage Group"
-
The new public folder database is created in the dismounted state. This command mounts the database created in the previous step:
Mount-Database -Identity "PFDatabase"
Step 2: Modify public folder database settings
After you create and mount the public folder database, you may need to change some of the public folder settings by using the Set-PublicFolderDatabase cmdlet. Modifying public folder database settings is not a task that you will perform every day—it'll usually just be a one-time task. Here are a few examples of some of the things you can change.
Modify information about a public folder database
-
This command sets the retention settings for the public folder database named PFDatabase that resides on SERVER01:
Set-PublicFolderDatabase -Identity "Server01\PFDatabase" -DeletedItemRetention 07.00:00:00 -RetainDeletedItemsUntilBackup $true -EventHistoryRetentionPeriod 14.00:00:00 -ItemRetentionPeriod unlimited
-
This command sets the storage quota for all public folders in the public folder database named PFDatabase:
Set-PublicFolderDatabase -Identity PFDatabase -IssueWarningQuota 2000MB -QuotaNotificationSchedule "Sun.3:00 AM-Sun.3:15 AM, Tue.3:00 AM-Tue.3:15 AM, Thu.3:00 AM-Thu.3:15 AM"
By using this command, public folder owners will be notified when their public folders meet the storage quota. For more information, see How to View or Modify Public Folder Settings.
-
This command sets the public folder referral settings:
Set-PublicFolderDatabase -Identity "Server1\PublicFolderDatabase01" -UseCustomReferralServerList $true -CustomReferralServerList "MBXSERVER01:1","MBXSERVER02:50"
Note: |
|---|
|
The CustomReferralServerList parameter accepts an array in the following format: serverID:cost. Separate multiple servers with a comma. For more information, see How to Configure Public Folder Referrals.
|
Step 3: Create public folders
Now it's time to create your public folders. Just like with the public folder database, there are few options that you can set when creating a public folder. This time you'll use the New-PublicFolder cmdlet. For more information about creating public folders, see How to Create Public Folders.
Create a new public folder
-
This command creates a new public folder in the root of the public folder tree on the closest Mailbox server that has a public folder database. This is because the command doesn't specify a server or a path:
New-PublicFolder -Name "Legal"
Note: |
|---|
|
If you don't specify a server, the cmdlet checks if the local server is an Exchange 2007 Mailbox server that has a public folder database. If it is, the public folder is created locally. If it is not, Exchange finds the closest (by site cost) Exchange 2007 Mailbox server that has a public folder database on which to create the public folder.
|
-
This command creates a new public folder named Pending in an existing public folder named Legal on the Mailbox server named My Server:
New-PublicFolder -Name "Pending" -Path \Legal -Server "Server01"
Well, in a nutshell, that's how you get started with public folders. Next, I'll show you how to use the Shell to complete your daily public folder tasks.