Set-VBRIndividualComputerContainer
Short Description
Modifies a scope of individual computers.
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.
Note |
|
To modify settings, specify new values for the necessary parameters. The cmdlet will overwrite the previous parameter values with new values. The parameters that you omit will remain unchanged. |
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Container |
Specifies the scope of computers you want to add to a protection group.
Accepts the |
True |
Named |
True (ByPropertyName, ByValue) |
|
|
CustomCredentials |
Specifies individual computers and a method for authenticating them.
Accepts the |
False |
Named |
True (ByPropertyName) |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
VBRIndividualComputerContainer
Examples
Adding Computer to Protection Group
This example shows how to add a computer to the Computers protection group.
|
$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 |
Perform the following steps:
- Run the
Get-VBRProtectionGroupReturns protection groups. cmdlet. Specify theNameparameter value. Save the result to the$groupvariable. - Get individual computers. Use the
Container.CustomCredentialsproperty of the$groupvariable. Save the result to the$compvariable. - Run the
New-VBRIndividualComputerCustomCredentialsSpecifies a method for authenticating individual computers. cmdlet. Specify theHostNameand theCredentialsparameter values. Save the result to the$supervisorvariable. - Add the computer to the group of computers in the
$compvariable. Use the+=operator. - Run the
Set-VBRIndividualComputerContainercmdlet. Set theContainerproperty of the$groupvariable as theContainerparameter value. Set the$compvariable as theCustomCredentialsparameter value. Save the result to the$newcompvariable. - Run the
Set-VBRProtectionGroupModifies protection groups. cmdlet. Set the$groupvariable as theProtectionGroupparameter value. Set the$newcompvariable as theContainerparameter value.
Related Commands
New-VBRIndividualComputerCustomCredentialsSpecifies a method for authenticating individual computers.Get-VBRProtectionGroupReturns protection groups.Set-VBRProtectionGroupModifies protection groups.