Commands › Exchange Online

Set-ManagedFolder

Exchange Online ExchangeOnlineManagement Set-*

Modify the settings of managed folders.

Quick start script

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

# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-ManagedFolder
$before | Format-List

# 3. Make the change (dry run first)
Set-ManagedFolder -Identity <ELCFolderIdParameter> -WhatIf
Set-ManagedFolder -Identity <ELCFolderIdParameter>

# 4. Verify and diff
$after = Get-ManagedFolder
Compare-Object ($before | Out-String) ($after | Out-String)

Syntax

Set-ManagedFolder [-Identity] <ELCFolderIdParameter>
 [-BaseFolderOnly <Boolean>]
 [-Comment <String>]
 [-Confirm]
 [-DomainController <Fqdn>]
 [-FolderName <String>]
 [-LocalizedComment <MultiValuedProperty>]
 [-LocalizedFolderName <MultiValuedProperty>]
 [-MustDisplayCommentEnabled <Boolean>]
 [-Name <String>]
 [-StorageQuota <Unlimited>]
 [-WhatIf]
 [<CommonParameters>]

Parameters (12)

ParameterTypeRequiredWhat it controls
-Identity ELCFolderIdParameter yes The Identity parameter specifies the name, distinguished name (DN), or GUID of the managed folder.
-BaseFolderOnly Boolean The BaseFolderOnly parameter specifies whether the managed content settings should be applied only to the managed folder or to the folder and all its subfolders.
-Comment String The Comment parameter specifies the default administrator comment to be displayed with the folder in Microsoft Office Outlook 2007.
-Confirm SwitchParameter The Confirm switch specifies whether to show or hide the confirmation prompt. How this switch affects the cmdlet depends on whether the cmdlet requires confirmation before proceeding.
-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...
-FolderName String The FolderName parameter specifies the name of the folder object as it appears in users' mailboxes.
-LocalizedComment MultiValuedProperty The LocalizedComment parameter specifies localized administrator comments and their languages. Localized comments are displayed instead of the default comment when the language setting of any client that displays...
-LocalizedFolderName MultiValuedProperty The LocalizedFolderName parameter specifies localized folder names and their languages. Localized folder names are displayed instead of the default folder name when the language setting of Outlook 2007 matches a...
-MustDisplayCommentEnabled Boolean The MustDisplayCommentEnabled parameter specifies whether to set a flag that's used by any client that displays comments and accepts this setting. If this parameter is set to $true, a flag is set that prevents users...
-Name String The Name parameter specifies a unique name for the content settings. The Name parameter doesn't appear in users' mailboxes.
-StorageQuota Unlimited The StorageQuota parameter specifies the storage size limit for the mailbox folder. When the folder size exceeds this limit, no additional items might be added. Mailbox sizes can be specified in kilobytes (KB) or...
-WhatIf SwitchParameter The WhatIf switch shows what the command does without making any changes. You don't need to specify a value with this switch.

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