Add-VBRDiscoveredComputerConfigurationPolicy
Short Description
Updates Veeam Agent settings on discovered computers using available configuration options.
Important |
|
Make sure to test this cmdlet in the lab before you run it in the production environment. |
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides the following parameter sets:
-
ProtectionGroupAdd-VBRDiscoveredComputerConfigurationPolicy -ProtectionGroup <VBRProtectionGroup[]> -AgentType <VBRAgentType>
-ConfigurationOption <VBRDiscoveredComputerConfigurationOption[]> [<CommonParameters>]
-
DiscoveredComputerAdd-VBRDiscoveredComputerConfigurationPolicy -DiscoveredComputer <VBRDiscoveredComputer[]>
-AgentType <VBRAgentType> -ConfigurationOption <VBRDiscoveredComputerConfigurationOption[]> [<CommonParameters>]
Detailed Description
This cmdlet updates Veeam Agent settings on individual computers or computers in protection groups using available configuration options. New settings are applied after the rescan operation.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
AgentType |
Specifies the type of a Veeam Agent:
|
|
True |
Named |
True (ByPropertyName) |
|
ConfigurationOption |
Specifies the configuration option that you want to assign to discovered computers.
Accepts the |
True |
Named |
True (ByPropertyName) |
|
|
DiscoveredComputer |
Specifies an array of discovered computers. The cmdlet will assign the configuration option to these computers.
Accepts the |
True |
Named |
True (ByPropertyName) |
|
|
ProtectionGroup |
Specifies an array of protection groups to which you want to assign the configuration option.
Accepts the |
True |
Named |
True (ByPropertyName, ByValue) |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
VBRDiscoveredComputerConfigurationPolicy
Examples
Updating Path to Temporary Folder Storing SQL Backup Logs on Windows Computers
This example shows how to update the SqlTempLogPath registry value on Windows computers.
|
$group = Get-VBRProtectionGroup -Name "Windows" $computers = Get-VBRDiscoveredComputer -ProtectionGroup $group $SQLLogpath = New-VBRDiscoveredComputerConfigurationOption -Name "SqlTempLogPath" -Value "D:\Temp" $configuration_policy = Add-VBRDiscoveredComputerConfigurationPolicy -DiscoveredComputer $computers -AgentType Windows -ConfigurationOption $SQLLogpath |
Perform the following steps:
- Run the
Get-VBRProtectionGroupReturns protection groups. cmdlet. Specify theNameparameter value. Save the result to the$groupvariable. - Run the
Get-VBRDiscoveredComputerReturns discovered computers. cmdlet. Set the$groupvariable as theProtectionGroupparameter value. Save the result to the$computersvariable. - Run the
New-VBRDiscoveredComputerConfigurationOptionCreates new configuration options for Veeam Agent settings. Make sure to test this cmdlet in the lab before you run it in the production environment. cmdlet. Specify theNameand theValueparameter values. Save the result to the$SQLLogpathvariable. - Run the
Add-VBRDiscoveredComputerConfigurationPolicycmdlet. Specify the following settings:- Set the
$computersvariable as theDiscoveredComputerparameter value. - Specify the
AgentTypeparameter value. - Set the
$SQLLogpathvariable as theConfigurationOptionparameter value.
Save the result to the
$configuration_policyvariable. - Set the
Related Commands
New-VBRDiscoveredComputerConfigurationOptionCreates new configuration options for Veeam Agent settings. Make sure to test this cmdlet in the lab before you run it in the production environment.Get-VBRProtectionGroupReturns protection groups.Get-VBRDiscoveredComputerReturns discovered computers.