--- title: "Apply-VBRManagedByAgentPolicy" description: "Assigns Veeam Agent backup policies to protected computers. Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License This cmdlet assigns Veeam Agent backup policies to protected computers." canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/apply-vbrmanagedbyagentpolicy.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Veeam Agent Management > Working with Veeam Agent Backup Jobs and Policies > Veeam Agent Management Backup Jobs > Apply-VBRManagedByAgentPolicy" dateModified: "2026-08-19" --- # Apply-VBRManagedByAgentPolicy ## Short Description Assigns Veeam Agent backup policies to protected computers. **Product Edition**: Standard, Enterprise, Enterprise Plus, Veeam Universal License ## Syntax ``` Apply-VBRManagedByAgentPolicy [-Policy] [-RunAsync] [] ``` ## Detailed Description This cmdlet assigns Veeam Agent backup policies to protected computers. ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Policy

Specifies a Veeam Agent backup policy that you want to assign to protected computers.

Accepts the VBRComputerBackupJob[] object. To get this object, run the Get-VBRComputerBackupJob cmdlet.

VBRComputerBackupJob[]

True

0

True (ByPropertyName, ByValue)

RunAsync

Defines that the command returns immediately without waiting for the task to complete.

SwitchParameter

False

Named

False

`` This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see [ Microsoft Docs](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_commonparameters?view=powershell-7). ## Output Object [`VBRSession`](vbrsession.md) ## Examples ::: example ### Assigning Veeam Agent Backup Policy to Protected Computers This example shows how to assign a Veeam Agent backup policy to protected computers. ``` $job = Get-VBRComputerBackupJob -Name "WinSrv2049" Apply-VBRManagedByAgentPolicy -Policy $job ``` Perform the following steps: 1. Run the [`Get-VBRComputerBackupJob`](get-vbrcomputerbackupjob.md) cmdlet. Specify the `Name` parameter value. Save the result to the `$job` variable. 2. Run the `Apply-VBRManagedByAgentPolicy` cmdlet. Set the `$job` variable as the `Policy` parameter value. ::: ## Related Commands [`Get-VBRComputerBackupJob`](get-vbrcomputerbackupjob.md)