Remove-VBRDiscoveredComputerConfigurationPolicy
Short Description
Removes policies that contain configuration options for Veeam Agent settings.
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
|
Remove-VBRDiscoveredComputerConfigurationPolicy -Policy <VBRDiscoveredComputerConfigurationPolicy[]> [-WhatIf] [-Confirm] [<CommonParameters>] |
Detailed Description
This cmdlet removes policies that contain configuration options for Veeam Agent settings.
Important |
|
The cmdlet does not update settings on discovered computers to which the policy has been applied. If you want to change the settings, you must create a new policy and assign it to discovered computers. To create a new policy, run the |
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Policy |
Specifies the policy that you want to remove.
Accepts the |
True |
Named |
True (ByPropertyName, ByValue) |
|
|
Confirm |
Defines that the cmdlet will write a message that describes the effects of running the cmdlet without actually performing any action.
Note: Microsoft PowerShell enables the |
|
False |
Named |
False |
|
WhatIf |
Defines that the cmdlet will write a message that describes the effects of running the cmdlet without actually performing any action. |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Examples
Removing Policy
This example shows how to remove a policy using the policy ID.
|
$PolicyToRemove = Get-VBRDiscoveredComputerConfigurationPolicy -Id a78eceb5-d5b8-4fe0-9a8c-cc788a123c4a Remove-VBRDiscoveredComputerConfigurationPolicy -Policy $PolicyToRemove |
Perform the following steps:
- Run the
Get-VBRDiscoveredComputerConfigurationPolicyReturns configuration options applied to protected computers. cmdlet. Specify theIdparameter value. Save the result to the$PolicyToRemovevariable. - Run the
Remove-VBRDiscoveredComputerConfigurationPolicycmdlet. Set the$PolicyToRemovevariable as thePolicyparameter value.
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.Add-VBRDiscoveredComputerConfigurationPolicyUpdates Veeam Agent settings on discovered computers using available configuration options. Make sure to test this cmdlet in the lab before you run it in the production environment.Get-VBRDiscoveredComputerConfigurationPolicyReturns configuration options applied to protected computers.