Set-VBRIndividualComputerContainer
Short Description
Modifies a scope of individual computers.
Applies to
Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
Set-VBRIndividualComputerContainer -Container <VBRIndividualComputerContainer> [-CustomCredentials <VBRIndividualComputerCustomCredentials[]>] [<CommonParameters>] |
Detailed Description
This cmdlet modifies the VBRIndividualComputerContainer object. This object contains the scope of computers you want to add to a protection group. To modify the settings of the scope, specify new values for the necessary parameters. The parameters you omit will remain unchanged.
Parameters
Parameter | Description | Required | Position | Accept | Accept |
---|---|---|---|---|---|
Container | Specifies the scope of computers you want to add to a protection group. Accepts VBRIndividualComputerContainer type. | True | Named | True (ByValue | False |
CustomCredentials | Specifies individual computers and credentials for authenticating with them. Accepts VBRIndividualComputerCustomCredentials[] type. | False | Named | True (ByProperty | 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
This example shows how to add a computer to the existing protection group.
You will need to perform the following steps:
- Run Get-VBRProtectionGroup to get the protection group whose settings you want to modify. Save the result to the $group variable.
- Get individual computers. Use the Container.CustomCredentials property of the protection group object saved to the $group variable. Save the result to the $comp variable.
- Run New-VBRIndividualComputerCustomCredentials to specify credentials for authenticating with the computer you want to add. Save the result to the $superviser variable.
- Add the computer to the group of computers in the $comp variable. Use the += operator.
- Run Set-VBRIndividualComputerContainer with the $group and $comp variables to modify the protection scope. Save the result to the $newcomp variable.
- Run Set-VBRProtectionGroup with the $group and $newcomp variables.
$group = Get-VBRProtectionGroup -Name Computers $comp = $group.Container.CustomCredentials $supervisor = New-VBRIndividualComputerCustomCredentials -HostName support.east.local -Credentials support\jsmith $comp += $supervisor $newcomp = Set-VBRIndividualComputerContainer -Container $group.Container -CustomCredentials $comp Set-VBRProtectionGroup -ProtectionGroup $group -Container $newcomp |
Related Commands