Help Center
Choose product document...
Veeam Backup & Replication 9.5
PowerShell Reference

Set-VBRIndividualComputerContainer

Short Description

Modifies a scope of individual computers.

Applies to

Product Edition: Standard, Enterprise, Enterprise Plus

Requires Veeam Agent for Microsoft Windows/Veeam Agent for Linux 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, enter the corresponding parameters with new values. The parameters you omit will remain unchanged.

Parameters

Parameter

Description

Required

Position

Accept
Pipeline
Input

Accept
Wildcard
Characters

Container

Specifies the scope of computers you want to add to a protection group.

Accepts VBRIndividualComputerContainer type.

True

Named

True (ByValue
ByProperty
Name)

False

CustomCredentials

Specifies individual computers and credentials for authenticating with them.

Accepts VBRIndividualComputerCustomCredentials[] type.

False

Named

True (ByProperty
Name)

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.

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:

  1. Run Get-VBRProtectionGroup to get the protection group whose settings you want to modify. Save the result to the $group variable.
  2. 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.
  3. Run New-VBRIndividualComputerCustomCredentials to specify credentials for authenticating with the computer you want to add. Save the result to the $superviser variable.
  4. Add the computer to the group of computers in the $comp variable. Use the += operator.
  5. Run Set-VBRIndividualComputerContainer with the $group and $comp variables to modify the protection scope. Save the result to the $newcomp variable.
  6. Run Set-VBRProtectionGroup with the $group and $newcomp variables.

PS C:\PS> $group = Get-VBRProtectionGroup -Name Computers

PS C:\PS> $comp = $group.Container.CustomCredentials

PS C:\PS> $supervisor = New-VBRIndividualComputerCustomCredentials -HostName support.east.local -Credentials support\jsmith

PS C:\PS> $comp += $supervisor

PS C:\PS> $newcomp = Set-VBRIndividualComputerContainer -Container $group.Container -CustomCredentials $comp

PS C:\PS> Set-VBRProtectionGroup -ProtectionGroup $group -Container $newcomp

Related Commands

New-VBRIndividualComputerCustomCredentials

Get-VBRProtectionGroup

Set-VBRProtectionGroup

Veeam Large Logo

User Guide for VMware vSphere

User Guide for Microsoft Hyper-V

Enterprise Manager User Guide

Veeam Cloud Connect Guide

Veeam Agent Management Guide

Veeam Backup Explorers User Guide

Backup and Restore of SQL Server Databases

PowerShell Reference

RESTful API Reference

Veeam Backup FREE Edition User Guide

Veeam Backup for Microsoft Office 365

Veeam ONE Documentation

Veeam Agent for Windows Documentation

Veeam Agent for Linux Documentation

Veeam Management Pack Documentation