Clear-VBRManagedByAgentPolicyCache
Short Description
Removes cache from the protected computers.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Clear-VBRManagedByAgentPolicyCache [-Policy] <VBRComputerBackupJob[]> [-RunAsync] [-WhatIf] [-Confirm] [<CommonParameters>] |
Detailed Description
This cmdlet removes backup cache from protected computers.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Policy |
Specifies a Veeam Agent backup policy. The cmdlet will remove backup cache from computers that are processed by this policy.
Accepts the |
|
True |
0 |
True (ByPropertyName, ByValue) |
|
RunAsync |
Defines that the command returns immediately without waiting for the task to complete. |
|
False |
Named |
False |
|
Confirm |
Defines whether the cmdlet displays a prompt that asks if the user is sure that they want to continue.
Note: Microsoft PowerShell enables the |
|
False |
Named |
False |
|
WhatIf |
Defines whether the cmdlet writes 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.
Output Object
Examples
Removing Backup Cache from Protected Computers
This example shows how to remove backup cache from protected computers that are processed by the WinSrv2049 Veeam Agent backup policy.
|
$policy = Get-VBRComputerBackupJob -Name "WinSrv2049" Clear-VBRManagedByAgentPolicyCache -Policy $policy |
Perform the following steps:
- Run the
Get-VBRComputerBackupJobReturns Veeam Agent backup jobs and Veeam Agent backup policies. cmdlet. Specify theNameparameter value. Save the result to the$policyvariable. - Run the
Clear-VBRManagedByAgentPolicyCachecmdlet. Set the$policyvariable as thePolicyparameter value.
Related Commands
Get-VBRComputerBackupJobReturns Veeam Agent backup jobs and Veeam Agent backup policies.