Install-VBRDiscoveredComputerAgent

In this article

    Short Description

    Installs Veeam Agents on discovered computers.

    Applies to

    Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License

    Syntax

    Install-VBRDiscoveredComputerAgent -DiscoveredComputer <VBRDiscoveredComputer[]> [-WhatIf] [-Confirm] [<CommonParameters>]

    Detailed Description

    This cmdlet installs Veeam Agents on discovered computers.

    Parameters

    Parameter

    Description

    Required

    Position

    Accept
    Pipeline
    Input

    Accept
    Wildcard
    Characters

    DiscoveredComputer

    Specifies the array of discovered computers. The cmdlet will install Veeam Agents on these computers.

    Accepts VBRDiscoveredComputer[] type.

    True

    Named

    True (ByValue,
    ByProperty
    Name)

    False

    WhatIf

    Specifies whether the cmdlet writes a message that describes the effects of running the cmdlet without actually performing any action.

    False

    Named

    False

    False

    Confirm

    Specifies whether the cmdlet displays a prompt that asks if the user is sure that they want to continue.

    False

    Named

    False

    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

    VBRSession

    Example 1

    This example shows how to install Veeam Agents on discovered computers of a selected protection group.

    You will need to perform the following steps:

    1. Run Get-VBRProtectionGroup to get the protection group. Save the result to the $group variable.
    2. Run Get-VBRDiscoveredComputer with the $group variable to get the discovered computers of the protection group. Save the result to the $computers variable.
    3. Run Install-VBRDiscoveredComputerAgent with the $computers variable.

    $group = Get-VBRProtectionGroup -Name "East Support"

    $computers = Get-VBRDiscoveredComputer -ProtectionGroup $group

    Install-VBRDiscoveredComputerAgent -DiscoveredComputer $computers

    Example 2

    This example shows how to create a protection group, manually discover computers of this group and install Veeam Agents on discovered computers of this group.

    You will need to perform the following steps:

    1. Create a scope of computers for a protection group:
    1. Create a protection group. To do this, run Add-VBRProtectionGroup with the $compscope variable. Save the result to the $group variable.
    2. Discover computers of the created protection group. To do this, run Rescan-VBREntity with the $group variable.
    3. Get the discovered computers of the protection group. To do this, run Get-VBRDiscoveredComputer with the $group variable. Save the result to the $discovered variable.
    4. Install Veeam Agents on the discovered computers of the created protection group. To do this, run Install-VBRDiscoveredComputerAgent with the $discovered variable.

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

    $compscope = New-VBRIndividualComputerContainer -CustomCredentials $computers

    $group Add-VBRProtectionGroup -Name "Support_East" -Container $compscope

    Rescan-VBREntity -Entity $group -Wait

    $discovered = Get-VBRDiscoveredComputer -ProtectionGroup $group

    Install-VBRDiscoveredComputerAgent -DiscoveredComputer $discovered

    Related Commands

    Get-VBRProtectionGroup

    Rescan-VBREntity

    New-VBRIndividualComputerCustomCredentials

    New-VBRIndividualComputerContainer

    Add-VBRProtectionGroup

    Get-VBRDiscoveredComputer