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>] [-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 Pipeline Input |
|---|---|---|---|---|---|
|
EnableEncryption |
Enables the option to encrypt the backups created by Veeam Agent or Veeam Backup for Nutanix AHV.
Use the |
|
False |
Named |
False |
|
EncryptionKey |
Used to specify the encryption key for the
Accepts the |
|
False |
Named |
False |
|
Force |
Defines that the cmdlet will apply access permissions to a repository without showing warnings in the PowerShell console. |
|
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 |
False |
Named |
False |
|
|
PassThru |
Defines that the command returns the output object to the Windows PowerShell console. |
|
False |
Named |
False |
|
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 |
|
True |
Named |
True (ByPropertyName, ByValue) |
|
Type |
Specifies the permission type:
Default: the permissions type that is currently set for the selected repository. |
|
False |
Named |
False |
|
User |
Used to set users for Specifies names of users allowed to use the repository. You can specify user names or names of Active Directory groups. |
|
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
Perform the following steps:
|
Example 2. Enabling Encryption for Repository
|
This command enables encryption for the
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
Perform the following steps:
|
Related Commands
Get-VBRBackupRepositoryReturns a list of backup repositories.Get-VBREncryptionKeyReturns encryption keys.Get-VBRKMSServerReturns KMS servers added to the Veeam Backup & Replication console.