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 | Required | Position | Accept | Accept |
---|---|---|---|---|---|
CustomCredentials | Specifies computers and credentials for authenticating with them. Accepts VBRIndividualComputerCustomCredentials[] type. | True | Named | True (ByValue | 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:
- 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.
- 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:
- 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.
- 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