Set-VBORbacRole
Short Description
Modifies settings of restore operator roles that are added to Veeam Backup for Microsoft 365.
Syntax
This cmdlet provides the following parameter sets:
-
SelectedBackupItemsParameterSet (Default)Set-VBORbacRole -Role <VBOOperatorRole> [-Name <String>] [-Description <String>]
[-Operators <VBORbacOperator[]>] [-SelectedItems <VBORbacRoleItem[]>] [-ExcludedItems <VBORbacRoleItem[]>] [<CommonParameters>]
-
EntireOrganizationParameterSetSet-VBORbacRole -Role <VBOOperatorRole> [-Name <String>] [-Description <String>]
[-Operators <VBORbacOperator[]>] [-EntireOrganization] [-ExcludedItems <VBORbacRoleItem[]>] [<CommonParameters>]
Detailed Description
This cmdlet modifies settings of the specified restore operator role. 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 |
|---|---|---|---|---|---|
|
Description |
Specifies a description of the restore operator role. The cmdlet will replace the current description with the specified description. |
|
False |
Named |
False |
|
EntireOrganization |
Defines that the specified restore operators will be able to explore and restore all objects within the specified Microsoft 365 organization. Default: False |
|
False |
Named |
False |
|
ExcludedItems |
Specifies an array of objects to exclude. The cmdlet will replace the current objects to exclude with the specified ones.
Note: You cannot exclude objects that have been specified for the
Accepts the
To create this object, run the |
False |
Named |
False |
|
|
Name |
Specifies a restore operator role name. The cmdlet will replace the current name with the specified name. |
|
False |
Named |
False |
|
Operators |
Specifies an array of restore operators. The cmdlet will replace the current restore operators with the specified restore operators.
Accepts the
To create this object, run the |
False |
Named |
False |
|
|
Role |
Specifies a restore operator role. The cmdlet will modify settings of this restore operator role.
Accepts the
To get this object, run the |
True |
Named |
True (ByValue) |
|
|
SelectedItems |
Specifies an array of objects to manage. The cmdlet will replace the current objects to manage with the specified ones.
Accepts the
To create this object, run the |
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.
Output Object
The cmdlet returns the VBOOperatorRole object that contains the restore operator role settings.
Examples
Modifying Restore Operators List
This example shows how to change a list of restore operators added to the specified restore operator role.
|
$org = Get-VBOOrganization -Name "ABC" $role = Get-VBORbacRole -Name "ABC Restore Operators" $User = Get-VBOOrganizationUser -Organization $org -UserName "userAlpha@tech.onmicrosoft.com" $newrestoreoperator = New-VBORbacOperator -User $User Set-VBORbacRole -Role $role -Operators $newrestoreoperator |
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-VBORbacRoleReturns settings of restore operator roles. cmdlet with theNameparameter to get the restore operator role whose settings you want to modify. Save the result to the$rolevariable. - Run the
Get-VBOOrganizationUserReturns organization users. cmdlet with the$orgvariable and theuserAlpha@tech.onmicrosoft.comvalue for theUserNameparameter to get an organization user with the name userAlpha. Save the result to the$Uservariable. - Run the
New-VBORbacOperatorDefines users or groups that will act as restore operators. cmdlet. Set the$Uservariable as theUserparameter value. Save the result to the$newrestoreoperatorvariable. - Run the
Set-VBORbacRolecmdlet. Set the$rolevariable as theRoleparameter value and the$newrestoreoperatorvariable as theOperatorsparameter value.
Related Commands
Get-VBOOrganizationReturns Microsoft organizations added to the Veeam Backup for Microsoft 365 infrastructure.Get-VBORbacRoleReturns settings of restore operator roles.Get-VBOOrganizationUserReturns organization users.New-VBORbacOperatorDefines users or groups that will act as restore operators.New-VBORbacRoleItemDefines Microsoft 365 organization users, groups, sites or teams that will be managed by restore operators or excluded.