PowerShell script exchange
Post Reply
emmoon1981
Novice
Posts: 5
Liked: never
Joined: Jul 09, 2016 9:34 am
Full Name: Ehsan Mohseni
Contact:

Script to create backup job for list of VBR servers

Post by emmoon1981 »

Hi everyone,
I'm looking for a powershell script that will do all my job configuration and policies for list of VBR servers
something like this
Connect-VBRServer -server "Myserver"-user "administrator" -password "mypass"
Find-VBRViEntity -Name myVMServerName* | Add-VBRViBackupJob -Name "Backup job name"
.
.
.
Disconnect-VBRServer

For list of VBR servers .
Thanks
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Script to create backup job for list of VBR servers

Post by veremin »

Such script doesn't exist at the moment, so you'll have to create it on your own.

However, this task might not be that tough, as it initially looks - PS subforum contains several examples on how a job can be created via PS. So, the only missing part is applying the creation rules to multiple VB&R server.

What you can do is to create a list of servers (DNS names, required credentials) and connect to them one by one within a cycle. Something like:

Code: Select all

foreach ($Server in $Servers){
Connect-VBRServer -$Server.name -User $Server.UserName -Password $Server.UserPassword
}
Where $Server variable consists of VB&R server address, user name and password.

Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 18 guests