Install-VBRDiscoveredComputerAgent
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 | Accept |
---|---|---|---|---|---|
DiscoveredComputer | Specifies the array of discovered computers. The cmdlet will install Veeam Agents on these computers. Accepts VBRDiscoveredComputer[] type. | True | Named | True (ByValue, | 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 on common parameters, see the About CommonParameters section of Microsoft Docs.
Return Type
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:
- Run Get-VBRProtectionGroup to get the protection group. Save the result to the $group variable.
- Run Get-VBRDiscoveredComputer with the $group variable to get the discovered computers of the protection group. Save the result to the $computers variable.
- 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:
- Create a scope of computers for a protection group:
- Run New-VBRIndividualComputerCustomCredentials to specify credentials you want to use for authenticating with computers. Save the result to the $computers variable.
- Run New-VBRIndividualComputerContainer with the $computers variable to create a scope of computers. Save the result to the $compscope variable.
- Create a protection group. To do this, run Add-VBRProtectionGroup with the $compscope variable. Save the result to the $group variable.
- Discover computers of the created protection group. To do this, run Rescan-VBREntity with the $group variable.
- 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.
- 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
New-VBRIndividualComputerCustomCredentials