Set-VBOBackupItem
Short Description
Modifies organization object settings.
Syntax
|
Set-VBOBackupItem -BackupItem <VBOBackupItem[]> [-Mailbox] [-ArchiveMailbox] [-OneDrive] [-Sites] [-GroupMailbox] [-GroupSite] [-Teams] [-TeamsChats] [<CommonParameters>] |
Detailed Description
This cmdlet modifies organization object settings. To modify settings, you need to enter the necessary parameters with new values. The parameters that you omit will remain unchanged.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
ArchiveMailbox |
Defines that the cmdlet will enable the archive mailbox option for an object. Default: False
Note: You cannot specify this parameter for the user of the |
|
False |
Named |
False |
|
BackupItem |
Specifies an organization object. The cmdlet will modify settings of this object.
Accepts the
To get this object, run the |
True |
Named |
False |
|
|
GroupMailbox |
Defines that the cmdlet will enable the group mailbox option for an object. Default: False |
|
False |
Named |
False |
|
GroupSite |
Defines that the cmdlet will enable the group site option for an object. Default: False |
|
False |
Named |
False |
|
Mailbox |
Defines that the cmdlet will enable the mailbox option for an object. Default: False |
|
False |
Named |
False |
|
OneDrive |
Defines that the cmdlet will enable the OneDrive option for an object. Default: False
Note: You cannot specify this parameter for the user of the |
|
False |
Named |
False |
|
Sites |
Defines that the cmdlet will enable the sites option for an object. Default: False |
|
False |
Named |
False |
|
Teams |
Defines that the cmdlet will enable the teams option for an object. Default: False |
|
False |
Named |
False |
|
TeamsChats |
Defines that the cmdlet will enable the team posts (formerly team chats) option for an object. Default: False |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About Common Parameters section of Microsoft Learn.
Examples
Modifying Processing Options of User Backup Item
This example shows how to add all processing options except for the mailbox for a backup item with a user named userAlpha.
|
$org = Get-VBOOrganization -Name "ABC" $user = Get-VBOOrganizationUser -Organization $org -DisplayName "userAlpha" $backupitem = New-VBOBackupItem -User $user -Mailbox -ArchiveMailbox -OneDrive -Sites Set-VBOBackupItem -BackupItem $backupitem -Mailbox:$false -ArchiveMailbox -OneDrive -Sites |
Perform the following steps:
- Run the
Get-VBOOrganizationReturns Microsoft organizations added to the Veeam Backup for Microsoft 365 infrastructure. cmdlet with theNameparameter to get the organization with the name ABC. Save the result to the$orgvariable. - Run the
Get-VBOOrganizationUserReturns organization users. cmdlet with the$orgvariable and theuserAlphavalue for theDisplayNameparameter to get a user with the display name userAlpha. Save the result to the$uservariable. - Run the
New-VBOBackupItemCreates organization objects. cmdlet with the$uservariable as theUserparameter value andMailbox,ArchiveMailbox,OneDriveandSitesparameters. Save the result to the$backupitemvariable. - Run the
Set-VBOBackupItemcmdlet with the$backupitemvariable as theBackupItemparameter value,ArchiveMailbox,OneDriveandSitesparameters, and thefalsevalue for theMailboxparameter to create a backup item with all userAlpha processing options except for the mailbox.
Related Commands
Get-VBOOrganizationReturns Microsoft organizations added to the Veeam Backup for Microsoft 365 infrastructure.Get-VBOOrganizationUserReturns organization users.New-VBOBackupItemCreates organization objects.Get-VBOBackupItemReturns a list of objects included in a backup job.