Commands › Exchange Online

Get-PublicFolderDatabase

Exchange Online ExchangeOnlineManagement Get-*

View public folder database settings for Microsoft Exchange Server 2010 or earlier public folders.

Quick start script

# Get-PublicFolderDatabase — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org

# 2. Run and inspect
Get-PublicFolderDatabase -Server <ServerIdParameter> | Format-List

# 3. Export for evidence / drift tracking
Get-PublicFolderDatabase | Export-Clixml .\PublicFolderDatabase-$(Get-Date -Format yyyyMMdd).xml

Syntax — 2 parameter sets

Server

Get-PublicFolderDatabase -Server <ServerIdParameter>
 [-DomainController <Fqdn>]
 [-IncludePreExchange2010]
 [-Status]
 [-IncludeCorrupted]
 [<CommonParameters>]

Identity

Get-PublicFolderDatabase [[-Identity] <DatabaseIdParameter>]
 [-DomainController <Fqdn>]
 [-IncludePreExchange2010]
 [-Status]
 [-IncludeCorrupted]
 [<CommonParameters>]

Parameters (6)

ParameterTypeRequiredWhat it controls
-Identity DatabaseIdParameter The Identity parameter specifies the public folder database that you want to view. You can use any value that uniquely identifies the database. For example:
-Server ServerIdParameter yes The Server parameter filters the results by the specified Exchange server. You can use any value that uniquely identifies the server. For example:
-DomainController Fqdn The DomainController parameter specifies the domain controller that's used by this cmdlet to read data from or write data to Active Directory. You identify the domain controller by its fully qualified domain name...
-IncludePreExchange2010 SwitchParameter The IncludePreExchange2010 switch specifies whether to include information about Exchange 2003 or Exchange 2007 public folders in the results. You don't need to specify a value with this switch.
-Status SwitchParameter The Status switch specifies whether to include additional backup and mount status information for servers running Exchange 2010. You don't need to specify a value with this switch.
-IncludeCorrupted SwitchParameter This parameter is reserved for internal Microsoft use.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.