PowerShell script exchange
Post Reply
Mohammed_Abbas
Novice
Posts: 5
Liked: never
Joined: Sep 03, 2021 7:03 pm
Full Name: Mohammed Nizam Abbas Ahamed
Contact:

Unable to add multiple servers to agent based jobs via PowerShell or REST API

Post by Mohammed_Abbas »

Hello Team,

Could someone help me with adding servers to agent-based backup jobs via powershell/commandline as we cannot see this similar to adding multiple VM Jobs.

Set-VBRComputerBackupJob (backupobject) only allows protection groups to be added not individual computers

We have also raised a Case #0713732 regarding this.

Thanks
Mohammed Abbas
Flex-IT
oleg.feoktistov
Veeam Software
Posts: 1918
Liked: 636 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Unable to add multiple servers to agent based jobs via PowerShell or REST API

Post by oleg.feoktistov »

Hello Mohammed,

The interface you see in the UI for adding individual computers to agent backup jobs is just a shortcut to add them to the Manually Added protection group. You can make sure of that by adding an individual computer to an agent job, rescanning the Manually Added protection group and seeing how it picks up the new computer you just added as a source.

It takes a bit different approach in Powershell - you will need to register this computer in the Manually Added protection group first and then add it to a job as a protection group member.

Best regards,
Oleg
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 15 guests