--- title: "Set-VBOFolderExclusions" description: "This cmdlet modifies folder exclusion settings. Veeam Backup for Microsoft 365 will not process the selected mailbox folder types during backup jobs and will not store the excluded data." canonical: "https://helpcenter.veeam.com/docs/vbo365/powershell/set-vbofolderexclusions.html" breadcrumb: "PowerShell Reference > Veeam Backup for Microsoft 365 PowerShell Reference > Data Backup > Folder Exclusions > Set-VBOFolderExclusions" dateModified: "2026-08-21" --- # Set-VBOFolderExclusions ## Short Description Modifies folder exclusion settings. ## Syntax ``` Set-VBOFolderExclusions [-DeletedItems] [-Drafts] [-JunkEmail] [-Outbox] [-SyncIssues] [-LitigationHold] [-InPlaceHold] [] ``` ## Detailed Description This cmdlet modifies folder exclusion settings. Veeam Backup for Microsoft 365 will not process the selected mailbox folder types during backup jobs and will not store the excluded data. By default, backup jobs will back up all folders from user mailboxes. To modify settings, you need to enter the necessary parameters with new values. The parameters that you omit will remain unchanged. ::: note Folder exclusion settings are global and will be applied to all backup jobs configured in Veeam Backup for Microsoft 365. ::: ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

DeletedItems

Defines that the cmdlet will configure backup jobs not to process the Deleted Items and Recoverable Items mailbox folders.

Default: False

SwitchParameter

False

Named

False

Drafts

Defines that the cmdlet will configure backup jobs not to process the Drafts mailbox folder.

Default: False

SwitchParameter

False

Named

False

InPlaceHold

Defines that the cmdlet will configure backup jobs not to process preserved items of mailboxes placed on In-Place Hold.

Default: False

SwitchParameter

False

Named

False

JunkEmail

Defines that the cmdlet will configure backup jobs not to process the Junk Email mailbox folder.

Default: False

SwitchParameter

False

Named

False

LitigationHold

Defines that the cmdlet will configure backup jobs not to process items of mailboxes placed on Litigation Hold.

Default: False

SwitchParameter

False

Named

False

Outbox

Defines that the cmdlet will configure backup jobs not to process the Outbox mailbox folder.

Default: False

SwitchParameter

False

Named

False

SyncIssues

Defines that the cmdlet will configure backup jobs not to process the Sync Issues mailbox folder.

Default: False

SwitchParameter

False

Named

False

`` This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the [About Common Parameters](http://go.microsoft.com/fwlink/p/?LinkID=113216) section of Microsoft Learn. ## Output Object The cmdlet returns the [`VBOFolderExclusions`](vbofolderexclusions.md) object that contains folder exclusion settings. ## Examples ::: example ### Excluding Junk Email and Drafts Folders from Processing This command excludes the *Junk Email* and *Drafts* mailbox folders from backup jobs. ``` Set-VBOFolderExclusions -JunkEmail -Drafts ``` :::