How to automate Veeam Backup and Replication Global Exclusion Lists

In Veeam Backup and Replication Version 12 a global VM exclusion list was introduced. VMs added to this list are excluded from processing in all jobs.

1. Administer the Global VM Exclusion list via the GUI in VBR 12

Up to now the only way to get VMs into or out of this list was via the GUI.

In V12 you get there with “Hamburger menu” on the upper left corner --> VM Exclusions

Then this dialog appears, and you can administer the global exclusion list via the GUI.

2. Administer the Global VM Exclusion List and the Global Malware exclusion list via the GUI in VBR 12.1

With the coming version 12.1 there will be some changes.

First will there be an additional exclusion list. You have one “Global VM Exclusions” list and one “Global Malware Exclusions” list.

You get there with “Hamburger menu” on the upper left corner --> Global Exclusions --> select one of the two exclusions lists.

Then this dialog appears (it looks the same for both exclusions lists except the window title), and you can administer the global exclusion lists via the GUI.

The second new feature is that you can administer both exclusions lists via PowerShell commands. We will have a look how to achieve this…

3. Administer the Global VM Exclusion List via PowerShell in VBR 12.1

First you have to get one or more VM definitions with the commence Find-VBRViEntity and save the results in a variable.

The content of the variable looks like this.

Now you can add one or all VMs in the variable to the Global VM Exclusions list with the command Add-VBRVMExclusion. To add a specific VM user the index of the VM inside the variable – e.g. $VM[0] for Test-VM-1

You can list the content of the Global VM Exclusion List with the command Get-VBRVMExclusion. Write the results of this command to a variable to use it to remove VMs from the Global VM Exclusion list.

Use the results of the former command to remove VMs from the Global VM Exclusions list.

List the content of the list to check that the VM was removed.

4. Administer the Global Malware Exclusion List via PowerShell in VBR 12.1

You can administer the Global Malware Exclusion list with the exact same logic, just use these three commands.

Last updated