New-VBRIndividualComputerContainer

Short Description

Creates a scope of computers for a protection group.

Applies to

Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License

Syntax

New-VBRIndividualComputerContainer -CustomCredentials <VBRIndividualComputerCustomCredentials[]>  [<CommonParameters>]

Detailed Description

This cmdlet creates the VBRIndividualComputerContainer object. This object contains a scope of computers. Use this object to create a protection group with the Add-VBRProtectionGroup cmdlet.

Parameters

Parameter

Description

Type

Required

Position

Accept
Pipeline
Input

CustomCredentials

Specifies computers and credentials for authenticating with them.

Accepts the VBRIndividualComputerCustomCredentials[] object. To get this object, run the New-VBRIndividualComputerCustomCredentials cmdlet.

True

Named

True (ByValue
ByProperty
Name)

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.

Output Object

VBRIndividualComputerContainer

Examples

New-VBRIndividualComputerContainerExample 1. Creating Scope of Computers for Protection Group

This example shows how to create a scope of computers for a protection group.

$computers = @("172.19.51.53", "sup-v8931") | ForEach { New-VBRIndividualComputerCustomCredentials -HostName $_ -Credentials "support\jsmith" }

New-VBRIndividualComputerContainer -CustomCredentials $computers

Perform the following steps:

  1. Run the New-VBRIndividualComputerCustomCredentials cmdlet. Use the ForEach statement to apply the same credentials to multiple computers. Save the result to the $computers variable.
  2. Run the New-VBRIndividualComputerContainer cmdlet. Set the $computers variable as the CustomCredentials parameter value.

New-VBRIndividualComputerContainerExample 2. Creating Protection Group with Scope of Computers

This example shows how to create a protection group with a scope of computers.

$computers = @("172.19.51.53", "sup-v8931") | ForEach { New-VBRIndividualComputerCustomCredentials -HostName $_ -Credentials "support\jsmith" }

$compscope = New-VBRIndividualComputerContainer -CustomCredentials $computers

Add-VBRProtectionGroup -Name "Computers" -Container $compscope

Perform the following steps:

  1. Create a scope of computers:
  • Run the New-VBRIndividualComputerCustomCredentials cmdlet. Use the ForEach statement to apply the same credentials to multiple computers. Save the result to the $computers variable.
  • Run the New-VBRIndividualComputerContainer cmdlet. Set the $computers variable as the CustomCredentials parameter value. Save the result to the $compscope variable.
  1. Create a protection group. To do this, run the Add-VBRProtectionGroup cmdlet. Specify the Name parameter value. Set the $compscope variable as the Container parameter value.

Related Commands

Page updated 3/6/2024

Page content applies to build 12.1.1.56