Remove-VBRJobObject
Short Description
Removes VMs or VM containers from jobs.
Platform: VMware, Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Remove-VBRJobObject [-Objects] <CObjectInJob[]> [-Completely] [<CommonParameters>] |
Detailed Description
This cmdlet allows you to remove VMs or VM containers from existing backup, replication or copy job.
You can remove the objects from job completely or only exclude them from processing.
- If you remove the objects completely, they are deleted from job settings and from Veeam database. Run the cmdlet with the
Completelyparameter for this. - If you run the cmdlet without the
Completelyparameter, the job objects are only excluded from processing but remain in job settings.
Note that Veeam PowerShell does not allow you to include the excluded objects back to the job, you can do it only with Veeam Backup & Replication UI.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Completely |
If you provide this parameter, you will be able to permanently remove the job objects from the job. |
|
False |
Named |
False |
|
Objects |
Specifies an array of job objects (VMs and VM containers). The cmdlet will exclude these objects from processing by the job.
Note: If the job is processing VM containers, the
Accepts the |
|
True |
1 |
True (ByPropertyName, ByValue) |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Examples
Example 1. Removing VM from Backup Job [Using Pipeline]
|
This example shows how to remove a
Perform the following steps:
|
Example 2. Completely Removing VM from Backup Job [Using Pipeline]
|
This example shows how to completely remove a
Perform the following steps:
|
Example 3. Removing Specific VMs from Backup Job [Using Variables]
|
This example shows how to remove
Perform the following steps:
|
Related Commands
Get-VBRJobObjectReturns VMs or VM containers of specific jobs.Get-VBRJobReturns existing jobs.