Example 6 Get-PublicFolder -Mailbox "Legal Department" -ResidentFolders This example returns the Pending Litigation public folder from \Legal\Documents\ and all the public folders under the Pending Litigation public folder, without a limit on the number returned. Example 5 Get-PublicFolder -Identity "\Legal\Documents\Pending Litigation" -Recurse -ResultSize Unlimited Because the result size isn't specified, the command returns up to the maximum number of public folders, which is 10,000. This example returns the Pending Litigation public folder from \Legal\Documents\ and all the public folders under the Pending Litigation public folder. Example 4 Get-PublicFolder -Identity "\Legal\Documents\Pending Litigation" -Recurse This example returns the Pending Litigation public folder from \Legal\Documents\. Example 3 Get-PublicFolder -Identity "\Legal\Documents\Pending Litigation" This example returns the names of all the system folders (which aren't shown by default), starting at the system folder root (\NON_IPM_SUBTREE). Example 2 Get-PublicFolder -Identity \NON_IPM_SUBTREE -Recurse | Format-List Name Public Folder Favorites: 16: Forms By default, the. While you can’t directly change the sync order, you can still influence it by selecting the folder that you want to have synched. This example uses the Get-PublicFolder command without parameters to return the root public folder object (IPM_SUBTREE). There is indeed a specific order in which Outlook synchronizes the folders when you are connecting to an Exchange server with Cached Exchange Mode enabled. To find the permissions required to run any cmdlet or parameter in your organization, see Find the permissions required to run any Exchange cmdlet. Although this topic lists all parameters for the cmdlet, you may not have access to some parameters if they're not included in the permissions assigned to you. You need to be assigned permissions before you can run this cmdlet.
Use the Get-PublicFolder cmdlet to retrieve the attributes of a public folder or a set of public folders.įor information about the parameter sets in the Syntax section below, see Exchange cmdlet syntax. Some parameters and settings may be exclusive to one environment or the other. This cmdlet is available in on-premises Exchange and in the cloud-based service.