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

New-VBRIndividualComputerContainer

Short Description

Creates a scope of computers for a protection group.

Applies to

Product Edition: Standard, Enterprise, Enterprise Plus

Requires Veeam Agent for Microsoft Windows/Veeam Agent for Linux 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 about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.

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.

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

PS C:\PS> 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.

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

PS C:\PS> $compscope = New-VBRIndividualComputerContainer -CustomCredentials $computers

PS C:\PS> Add-VBRProtectionGroup -Name "Computers" -Container $compscope

Related Commands

New-VBRIndividualComputerCustomCredentials

Add-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

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