PowerShell script exchange
Post Reply
manuel.aigner
Enthusiast
Posts: 34
Liked: 5 times
Joined: Sep 25, 2017 8:25 am
Full Name: Manuel Aigner
Contact:

HowTo Add Windows-Agent to existing Backupjob

Post by manuel.aigner »

Hi There,
In PS-Reference I can find how to add a hyper-V or vSphere VM to an existing Job. But I can't find any cmdlet to add physical machines to an windows job via FQDN as it is possible in GUI.
Maybe it's possible with protection groups. But due to the fact I have to backup many windows server, which all have there own local and also Azure blog storage repository as target, I have to create a protection group for each single server which ends up in a large management overhead.
Any ideas?
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 669 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: HowTo Add Windows-Agent to existing Backupjob

Post by oleg.feoktistov »

Hi Manuel,

Adding physical machines directly to a windows job by FQDN in the UI is just an interactive option - on the backend the are also being added to a protection group, but the predefined one called "Manually Added". Which means in Powershell the workflow doesn't differ from processing protection groups and machines within:

1. Add physical machine to "Manually Added" protection group. Guide: Working with Protection Groups.
2. Get existing job backup objects and add physical machines from step 1. Guide: Veeam Management Backup Jobs.

Best regards,
Oleg
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests