New-VBRIndividualComputerContainer

In this article

    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

    Required

    Position

    Accept
    Pipeline
    Input

    Accept
    Wildcard
    Characters

    CustomCredentials

    Specifies computers and credentials for authenticating with them.

    Accepts VBRIndividualComputerCustomCredentials[] type.

    True

    Named

    True (ByValue
    ByProperty
    Name)

    False

    <CommonParameters>

    This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.

    Return Type

    VBRIndividualComputerContainer

    Example 1

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

    You will need to perform the followings steps:

    1. Run New-VBRIndividualComputerCustomCredentials to specify credentials for authenticating with computers for which you want to create a protection scope. Use the ForEach statement to apply the same credentials to multiple computers. Save the result to the $computers variable.
    2. Run New-VBRIndividualComputerContainer with the $computers variable.

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

    New-VBRIndividualComputerContainer -CustomCredentials $computers

    Example 2

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

    You will need to perform the following steps:

    1. Create a scope of computers:
    • Run New-VBRIndividualComputerCustomCredentials to specify credentials for authenticating with computers. Use the ForEach statement to apply the same credentials to multiple computers. Save the result to the $computers variable.
    • Run New-VBRIndividualComputerContainer with the $computers variable. Save the result to the $compscope variable.
    1. Create a protection group. To do this, run Add-VBRProtectionGroup with the $compscope variable.

    $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

    Related Commands

    New-VBRIndividualComputerCustomCredentials

    Add-VBRProtectionGroup