Set-VBREPPermission
Short Description
Applies user access permissions to backup repositories used by Veeam Agent or Veeam Plug-in operating in the standalone mode.
Syntax
Set-VBREPPermission -Repository <CBackupRepository> [-Type <VBREPPermissionType> {Everyone | NoOne | OnlySelectedUsers}] [-User <String[]>] [-EnableEncryption] [-EncryptionKey <VBREncryptionKey>] [-KMSServer <VBRKMSServer>] [-PassThru] [-Force] [<CommonParameters>] |
Detailed Description
This cmdlet applies user access permissions to a selected repository that is used as a target by Veeam Agent or Veeam Plug-in operating in the standalone mode.
By default, the backup repositories are configured to have no permissions for writing backups created by Veeam Agent or Veeam Plug-in operating in the standalone mode. To start using a Veeam backup repository as a target, you need to change the access permissions to Everyone or OnlySelectedUsers.
Note |
To modify settings, specify new values for the necessary parameters. The cmdlet will overwrite the previous parameter values with new values. The parameters that you omit will remain unchanged. |
Parameters
Parameter | Description | Type | Required | Position | Accept |
---|---|---|---|---|---|
Repository | Specifies the repository for which you want to set permissions. Note: You cannot set permissions for Veeam Cloud Connect repositories. | Accepts string (repository name) or the CBackupRepository object. To get this object, run the Get-VBRBackupRepository cmdlet. | True | Named | True (ByValue, |
Type | Specifies the permission type:
Default: the permissions type that is currently set for the selected repository. | VBREPPermissionType | False | Named | False |
User | Used to set users for OnlySelectedUsers option. Specifies names of users allowed to use the repository. You can specify user names or names of Active Directory groups. | String[] | False | Named | False |
EnableEncryption | Enables the option to encrypt the backups created by Veeam Agent or Veeam Backup for Nutanix AHV. Use the EncryptionKey parameter to specify the encryption key. Note: Do not enable the encryption option if you back up your data with Veeam Plug-in. Veeam Plug-ins cannot send backups to a backup repository where encryption is enabled. | SwitchParameter | False | Named | False |
EncryptionKey | Used to specify the encryption key for the EnableEncryption parameter. | Accepts the VBREncryptionKey object. To get this object, run the Get-VBREncryptionKey cmdlet. | False | Named | False |
PassThru | Defines that the command returns the output object to the Windows PowerShell console. | SwitchParameter | False | Named | False |
Force | Defines that the cmdlet will apply access permissions to a repository without showing warnings in the PowerShell console. | SwitchParameter | False | Named | False |
KMSServer | Specifies KMS servers added to the Veeam Backup & Replication console. The cmdlet will decrypt data encrypted by this server. | Accepts the VBRKMSServer object. To get this object, run the Get-VBRKMSServer cmdlet. | False | Named | False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
Examples
Example 1. Granting Repository Permissions to Administrator
This example shows how to grant permission to access the WinLocal repository to Administrator.
Perform the following steps:
|
Example 2. Enabling Encryption for Repository
This command enables encryption for the WinLocal repository.
Perform the following steps:
|
Example 3. Granting User Access Permissions to Everyone
This example shows how to grant user access permissions to everyone and enable encryption for the WinLocal repository.
Perform the following steps:
|
Related Commands