Short Description
Modifies backup item settings.
Syntax
Set-VBOBackupItem -BackupItem <VBOBackupItem[]> [-Mailbox] [-ArchiveMailbox] [-OneDrive] [-Sites] [-GroupMailbox] [-GroupSite] [<CommonParameters>] |
Detailed Description
This cmdlet modifies backup item settings.
Parameters
Parameter | Description | Required | Position | Accept | Accept |
OneDrive | Indicates that the cmdlet will include OneDrive processing option in the backup item. | False | Named | False | False |
BackupItem | Specifies a backup item. This cmdlet will set the specified backup item. | True | Named | False | False |
Mailbox | Indicates that the cmdlet will include Mailbox processing option in the backup item. | False | Named | False | False |
ArchiveMailbox | Indicates that the cmdlet will include Archive Mailbox processing option in the backup item. | False | Named | False | False |
Sites | Indicates that the cmdlet will include Sites processing option in the backup item. | False | Named | False | False |
GroupMailbox | Indicates that the cmdlet will include Group Mailbox processing option in the backup item. Can be used only for a group backup item. | False | Named | False | False |
GroupSite | Indicates that the cmdlet will include Group Site processing option in the backup item. Can be used only for a group backup item. | False | Named | False | False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
Example 1:
This example shows how to add all processing options except for the mailbox for a backup item with a user named "userAlpha":
- Run Get-VBOOrganization with a Name parameter to get the organization with a name "ABC". Save the result to the $org variable.
- Run Get-VBOOrganizationUser with the $org variable and a "userAlpha" value for the Name parameter to get a user with the name "userAlpha". Save the result to the $user variable.
- Run New-VBOBackupItem with the $user value for the User parameter and Mailbox, OneDrive and Sites parameters. Save the result to the $backupitem variable.
- Run Set-VBOBackupItem with the $backupitem value for the BackupItem parameter, ArchiveMailbox, OneDrive and Sites parameters, and a $false value for the Mailbox parameter to create a backup item with all "userAlpha" processing options except for the mailbox.
PS C:\PS> $org = Get-VBOOrganization -Name "ABC" PS C:\PS> $user = Get-VBOOrganizationUser -Organization $org -Name "userAlpha" PS C:\PS> $backupitem = New-VBOBackupItem -User $user -Mailbox -ArchiveMailbox -OneDrive -Sites PS C:\PS> Set-VBOBackupItem -BackupItem $backupitem -Mailbox:$false -ArchiveMailbox -OneDrive -Sites |