New-VBRADCustomCredentials
Short Description
Specifies custom credentials for authenticating with Active Directory objects.
Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides the following parameter sets:
-
Credentials (Default)
|
New-VBRADCustomCredentials -Entity <VBRADEntity> -Credentials <CCredentials> [<CommonParameters>] |
-
TempCertificates
|
New-VBRADCustomCredentials -Entity <VBRADEntity> [-UseTemporaryCertificate] [<CommonParameters>] |
Detailed Description
This cmdlet specifies custom credentials for authenticating with Active Directory objects you want to add to a protection group. Veeam Backup & Replication uses these credentials for Veeam Agent deployment and backup\restore activities.
By default, Veeam Backup & Replication uses Master account credentials for authenticating with all Active Directory objects in a protection group. For authenticating with Active Directory objects that require different credentials Veeam Backup & Replication uses custom credentials.
Parameters
Parameters
|
Parameter
|
Description
|
Type
|
Required
|
Position
|
Accept Pipeline Input
|
|
Credentials
|
Specifies custom credentials for authenticating with Active Directory objects in a protection group.
If not set, Veeam Backup & Replication will use Master account credentials for authenticating with associated objects.
Note: for string type, enter a user name in the DNS.DOMAIN.NAME\USERNAME or USERNAME@DNS.DOMAIN.NAME format.
Accepts string (user name) or the CCredentials object. To get this object, run the Get-VBRCredentialsReturns credentials records. cmdlet.
|
CCredentials
|
True
|
Named
|
True (ByPropertyName)
|
|
Entity
|
Specifies Active Directory objects for which you want to specify custom credentials.
Note: If you specify a group, it must be a global domain group.
Accepts the VBRADEntity object. To get this object, run the Find-VBRADEntityLooks for Active Directory objects. cmdlet.
|
VBRADEntity
|
True
|
Named
|
True (ByPropertyName, ByValue)
|
|
UseTemporaryCertificate
|
Defines that the cmdlet will use a temporary certificate to connect to the Active Directory objects instead of authenticating with credentials.
|
SwitchParameter
|
True
|
Named
|
True (ByPropertyName)
|
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
VBRADCustomCredentials
Examples
Example 1. Specifying Credentials for Authenticating with Active Directory Objects
|
This example shows how to specify custom credentials for authenticating with Active Directory objects.
|
$connection = Get-VBRADDomain -ServerName support.east -Credentials support\jsmith
$root = Find-VBRADEntity -Domain $connection
$accounts = Find-VBRADEntity -Domain $connection -Root $root -Name Accounts
$ccreds = Get-Credential
New-VBRADCustomCredentials -Entity $accounts -Credentials $ccreds |
Perform the following steps:
- Run the
Get-VBRADDomainCreates an object for connecting to Active Directory domain. cmdlet. Specify the ServerName and Credentials parameter values. Save the result to the $connection variable.
- Run the
Find-VBRADEntity cmdlet. Set the $connection variable as the Domain parameter value. Save the result to the $root variable.
- Run the
Find-VBRADEntity cmdlet. Set the $connection variable as the Domain parameter value. Set the $root variable as the Root parameter value. Specify the Name parameter value. Save the result to the $accounts variable.
- Run the
Get-Credential cmdlet. Type the credentials you want to use for authenticating with the Active Directory objects from the Accounts container. Save the result to the $ccreds variable.
- Run the
New-VBRADCustomCredentials cmdlet. Set the $accounts variable as the Entity parameter value. Set the $ccreds variable as the Credentials parameter value.
|
Example 2. Specifying Master Account Credentials for Scope of Active Directory Objects
|
This example shows how to specify Master account credentials for the scope of Active Directory objects.
|
$connection = Get-VBRADDomain -ServerName support.east -Credentials support\jsmith
$objects = Find-VBRADEntity -Domain $connection -Name Support
New-VBRADCustomCredentials -Entity $objects |
Perform the following steps:
- Run the
Get-VBRADDomainCreates an object for connecting to Active Directory domain. cmdlet. Specify the ServerName and Credentials parameter values. Save the result to the $connection variable.
- Run the
Find-VBRADEntity cmdlet. Set the $connection variable as the Domain parameter value. Specify the Name parameter value. Save the result to the $objects variable.
- Run the
New-VBRADCustomCredentials cmdlet. Set the $objects variable as the Entity parameter value.
|
Example 3. Specifying Temporary Certificate for Authenticating with Active Directory Objects
|
This example shows how to specify a temporary certificate for authenticating with Active Directory objects.
|
$connection = Get-VBRADDomain -ServerName support.east -Credentials support\jsmith
$root = Find-VBRADEntity -Domain $connection
$servers = Find-VBRADEntity -Domain $connection -Root $root -Name Servers
New-VBRADCustomCredentials -Entity $servers -UseTemporaryCertificate |
Perform the following steps:
- Run the
Get-VBRADDomainCreates an object for connecting to Active Directory domain. cmdlet. Specify the ServerName and Credentials parameter values. Save the result to the $connection variable.
- Run the
Find-VBRADEntityLooks for Active Directory objects. cmdlet. Set the $connection variable as the Domain parameter value. Save the result to the $root variable.
- Run the
Find-VBRADEntityLooks for Active Directory objects. cmdlet. Set the $connection variable as the Domain parameter value. Set the $root variable as the Root parameter value. Specify the Name parameter value. Save the result to the $servers variable.
- Run the
New-VBRADCustomCredentials cmdlet. Set the $servers variable as the Entity parameter value. Provide the UseTemporaryCertificate parameter.
|
Related Commands