Public Folder Usage

<<Public Folder>>

 

Database 的位置:

'C:\Program Files\Microsoft\Exchange Server\Mailbox\First Storage Group\Public Folder Database.edb'

過去的 log:

E010000000A.log

必要的log:

E01.log

 

如果它存在, 那就可 mount 它:

mount-database -Identity:'Public Folder Database'

Dismount:

Dismount-Database

 

-----------------------------------------------------

看有沒 PublicFolderDatabase

Get-PublicFolderDatabase

Example:

Get-PublicFolderDatabase -Server ns2 | fl

-----------------------------------------------------

看有沒 PublicFolder

Get-PublicFolder

        Get-PublicFolder -identity "\share"

Example:

C:\>Get-PublicFolder -Recurse

-----------------------------------------------------

建立 PublicFolder

-Name '<name>' -Path '<PFPath>' -Server '<ServerName>'

        New-PublicFolder -name 'share'

建立時必要的 Service Microsoft Exchange System Attendant

-----------------------------------------------------

啟用 PublicFolder

Enable-MailPublicFolder -Identity '<folderpath>'

-----------------------------------------------------

查看 Permission :

Get-PublicFolderClientPermission

Example:

Get-PublicFolder -Recurse | Get-PublicFolderClientPermission

Identity                   User                       AccessRights
--------                   ----                       ------------
\                          Default                    {PublishingAuthor}
\                          Anonymous                  {Reviewer}

 

-----------------------------------------------------

設定權限: Add-PublicFolderClientPermission:

 

Add-PublicFolderClientPermission -Identity "\Marketing\West Coast" -AccessRights PublishingEditor -User Kim

AddUsersToPFRecursive.ps1 -TopPublicFolder "\Sales" -User "David" -Permission Reviewer

 

AccessRights 的參數: (必須要大小寫一至)

ReadItems  
The user has the right to read items within the specified public folder.
CreateItems  
The user has the right to create items within the specified public folder.
EditOwnedItems  
The user has the right to edit the items that the user owns in the specified public folder.
DeleteOwnedItems  
The user has the right to delete items that the user owns in the specified public folder.
EditAllItems  
The user has the right to edit all items in the specified public folder.
DeleteAllItems  
The user has the right to delete all items in the specified public folder.
CreateSubfolders  
The user has the right to create subfolders in the specified public folder.
FolderOwner 
The user is the owner of the specified public folder. The user has the right to view and move the public folder and create subfolders. The user cannot read items, edit items, delete items, or create items.
FolderContact  
The user is the contact for the specified public folder.
FolderVisible  
The user can view the specified public folder, but cannot read or edit items within the specified public folder.

In addition to the access rights, you can create rights based upon roles, which includes multiple access rights. This parameter accepts the following values for roles:

None  
FolderVisible
Owner  
CreateItems, ReadItems, CreateSubfolders, FolderOwner, FolderContact, FolderVisible, EditOwnedItems, EditAllItems, DeleteOwnedItems, DeleteAllItems

PublishingEditor  
CreateItems, ReadItems, CreateSubfolders, FolderVisible, EditOwnedItems, EditAllItems, DeleteOwnedItems, DeleteAllItems

Editor  
CreateItems, ReadItems, FolderVisible, EditOwnedItems, EditAllItems, DeleteOwnedItems, DeleteAllItems

PublishingAuthor  
CreateItems, ReadItems, CreateSubfolders, FolderVisible, EditOwnedItems, DeleteOwnedItems

Author   CreateItems, ReadItems, FolderVisible, EditOwnedItems, DeleteOwnedItems

NonEditingAuthor   CreateItems, ReadItems, FolderVisible
Reviewer   ReadItems, FolderVisible

Contributor   CreateItems, FolderVisible

設定特性:

Set-MailPublicFolder -Identity '<folderpath>'   [attributes and values]
Set-MailPublicFolder -Identity "\YourFolderHere" -EmailAddressPolicyEnabled 0
Set-MailPublicFolder -Identity "\YourFolderHere" -PrimarySMTPAddress [email protected]

Add-PublicFolderAdministrativePermission -User Chris -Identity \MyPublicFolder  -AccessRights ViewInformationStore

None  
ModifyPublicFolderACL
ModifyPublicFolderAdminACL  
ModifyPublicFolderQuotas  

 

-----------------------------------------------------

停用:

Disable-MailPublicFolder -Identity '<folderpath>' -Server <servername>

-----------------------------------------------------

 


 

Remove Public Folder

 

Method 1

    1. Create a public folder store on the Exchange 2007 server.
    2. Go back to your Exchange 2003 server and add the Exchange 2007 server to the public folder replica list.

Once the replication process is complete, remove your legacy Exchange servers from the list.

 

When you're using Local Continuous Replication (LCR) or Cluster Continuous Replication (CCR) on your Exchange 2007 server, it allows you to only use one public folder store in your organization. To clarify, this means that you can have one public folder store in the entire Exchange organization -- not one public folder store per server. Therefore, if you're using Local Continuous Replication or Cluster Continuous Replication, you must disable the technology until after you move the public folder store.

 

Method 2

The other method to move public folders involves running one of two shell scripts, which can be found in the Exchange server's C:\TEMP\SCRIPTS folder. The first of these scripts is MoveAllReplicas.ps1. If you wanted to move all public folder replicas from Server1 to Server2, use the following command:

MoveAllReplicas.ps1 –Server Server1 –NewServer Server2

Moving a segment of the public folder tree, however, is more complicated. For instance, suppose that your public folder tree contains a folder named Finance. If you wanted to move this folder and all of its subfolders from Server1 to Server2, you would use the command:

ReplaceReplicaOnPFRecursive.ps1 –TopPublicFolder "\Finance" –ServerToAdd Server2 –ServerToRemove Server1

While this command is a bit more complicated, the syntax is fairly straightforward. You can also get additional help for using these scripts in the Microsoft TechNet article,

 

 


 

How to move public folder content from one public folder database to another public folder database.

====================================

GUI

  1. Server Configuration, and then click Mailbox
  2. under the mailbox database name, click Properties.
  3. <Mailbox Database Name> Properties, click the Client Settings
  4. Default public folder database box, click Browse.
  5. Select Public Folder Database

 

To set the public folder database named PublicFolderDB1 as the default public folder database for the mailbox database named Mailbox Database, run the following command.

Set-MailboxDatabase -Identity "Mailbox Database" -PublicFolderDatabase "PublicFolderDB1"

 


 

Removing a public folder database from a server   If you want to move a public folder database from a server, you must first move the data within the public folder database to a public folder database on another server, and then you remove the public folder database.

 

Removing Public Folder Databases
==========================

You cannot delete a public folder database that contains data (replicas).

you must configure another public folder database as their default public folder database.

To identify the public folder databases that are associated with all mailbox databases, run the following command:

Get-MailboxDatabase | ft Name,PublicFolderDatabase

 

Delete the public folder database files manually.

===================

At the MSH prompt, change to the following folder:
Drive_Letter:\Program Files\Microsoft\Exchange Server\Scripts
Run the following command:
MoveAllReplicas.ps1 -Server Source_Server_Name –NewServer Target_Server_Name


 

Outlook

 

Share

Select where to place the folder
SET PERMISSION LEVELS

=====================================

Veiw Sharedfolder (ctrl + 6)

1. in the Navigation Pane
2. click Mail.Tip On the Go menu
3. click Folder List to display the folders in the Navigation Pane.

 

 

Exchange mode

 

開啟預設的 Outlook 資料夾(inbox, calendar)

如果要開啟預設的 Outlook 資料夾,請依照下列步驟執行:

    記下共用邀請中您想要檢視的 Outlook 資料夾名稱。
    在 [檔案] 功能表上,指向 [開啟],然後按一下 [其他使用者的資料夾]。
    在 [開啟其他使用者的資料夾] 對話方塊中,將擁有該資料夾的使用者名稱輸入 [名稱] 方塊,按一下 [資料夾類型] 方塊中的您在步驟 1 記下的 Outlook 資料夾名稱,然後按一下 [確定]。

    您將會注意到在 Outlook 資料夾清單窗格中出現了共用的 Outlook 資料夾。

 

開啟非預設的 Outlook 資料夾 (以 E-Mail 形式存在)

    在 Outlook 中,按一下 [工具] 功能表上的 [電子郵件帳戶]。
    在 [電子郵件帳戶] 對話方塊中,按一下 [檢視或變更現有的電子郵件帳戶],再按一下 [下一步]。
    按一下您的 Exchange Server 帳戶,然後按一下 [變更]。
    按一下 [其他設定]。
    在 [Microsoft Exchange Server] 對話方塊中,按一下 [進階] 索引標籤,然後按一下 [新增]。
    在 [新增信箱] 對話方塊中,輸入共用資料夾的擁有者名稱,然後按一下 [確定]。
    按一下 [確定],再按一下 [下一步],然後按一下 [完成]。
    在瀏覽窗格中,展開 [信箱 - UserNameOfFolderOwner],
    然後按一下使用者與您共用的資料夾。

 

 


 

有關 Command

 

Public Folder Cmdlets:

New-PublicFolderDatabase
Remove-PublicFolderDatabase
Get-PublicFolderDatabase
Set-PublicFolderDatabase

New-PublicFolder
Remove-PublicFolder

Get-PublicFolder
Set-PublicFolder

Get-MailPublicFolder
Set-MailPublicFolder

Disable-MailPublicFolder
Enable-MailPublicFolder          <-- Enable-MailPublicFolder "\My Public Folder"

Update-PublicFolder
Update-PublicFolderHierarchy
Get-PublicFolderStatistics

Resume-PublicFolderReplication
Suspend-PublicFolderReplication

Add-PublicFolderClientPermission
Get-PublicFolderClientPermission
Remove-PublicFolderClientPermission      
# Remove-PublicFolderClientPermission -Identity \"My Public Folder" -User Chris -AccessRights CreateItems -Server "My Server"

Add-PublicFolderAdministrativePermission
Get-PublicFolderAdministrativePermission
Remove-PublicFolderAdministrativePermission