PowerShell script exchange
Post Reply
collinp
Expert
Posts: 239
Liked: 13 times
Joined: Feb 14, 2012 8:56 pm
Full Name: Collin P
Contact:

Windows Agent Powershell equivalent commands

Post by collinp »

We are trying to standardize and automate the creation of jobs for Physical servers. Is there a supported or unsupported way to do the following with Windows Physical Servers whether powershell or using Veeam api calls?

Thank you,
Collin

1. Hyper-V command (Create a new Hyper-V job and add a vm to the job):
Add-VBRHvBackupJob -name $newjobname -BackupRepository $Repository Name -Entity $Entity

1a. Physical Server Equivalent (Create a new Physical Server Job and add a physical server to the job):
?


2. Hyper-V command (Add a vm to an existing job):
Add-VBRHvJobObject -job $JobName -Entities $Entity


2a. Physical Server Equivalent(Add a physical server to an existing job):
?
Vitaliy S.
VP, Product Management
Posts: 27377
Liked: 2800 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Windows Agent Powershell equivalent commands

Post by Vitaliy S. »

Hi Collin,

There are two possible scenarios over here: standalone agent job configuration and managing Agents through Veeam B&R server. For the first one can be achieved using Veeam Agent Configurator APIs, see this link on how to create and import the required job configs: Veeam Agent for Microsoft Windows 2.2: Configurator Reference.

The second scenario where you manage all Agents via Veeam B&R should implemented using these APIs: Veeam Agent Management Protection Scope, Veeam Agent Management Protection Groups and Veeam Agent for Microsoft Windows Backup Jobs

Thank you!
collinp
Expert
Posts: 239
Liked: 13 times
Joined: Feb 14, 2012 8:56 pm
Full Name: Collin P
Contact:

Re: Windows Agent Powershell equivalent commands

Post by collinp »

Agents are managed through the Veeam B&R server and we don't use protection groups. I already looked at this page and there don't appear to be any powershell commands to create new jobs and to add servers to existing jobs: https://helpcenter.veeam.com/docs/backu ... tml?ver=95

Collin
veremin
Product Manager
Posts: 20415
Liked: 2302 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Windows Agent Powershell equivalent commands

Post by veremin »

Correct, currently the functionality is not there. Expect it in the next product update. Thanks.
collinp
Expert
Posts: 239
Liked: 13 times
Joined: Feb 14, 2012 8:56 pm
Full Name: Collin P
Contact:

Re: Windows Agent Powershell equivalent commands

Post by collinp »

I'm circling back on this post from a year ago. Update 4 was supposed to add support for creating Physical server jobs and adding physical servers to existing jobs via powershell. Has that happened yet? I can't find it in the powershell reference library. So in the 2 powershell commands below, what is the actual command I should replace the "Add-VBRPhysicalServerObject" with?

1. Create a new physical server job and add a physical server to the job:
Add-VBRPhysicalServerObject -name $newjobname -BackupRepository $Repository Name -Entity $Entity

2. Add a Physical Server to an existing job:
Add-VBRPhysicalServerObject -job $JobName -Entities $Entity

Thank you,

Collin
veremin
Product Manager
Posts: 20415
Liked: 2302 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Windows Agent Powershell equivalent commands

Post by veremin »

Kindly, check our User Guide (especially Agent Management section). Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests