pick path job modification cmdlet

PowerShell script exchange

pick path job modification cmdlet

Veeam Logoby rmf » Thu Jan 15, 2015 8:08 pm

I have created a powershell script to add new job with specific setting. One setting I can't find the cmdlet for is setting specific datastores for VM's with in a job. That would be setting both the location for the config file and location for the vhdx within the pick path option. Could someone point me in the right direction to modify/add those paths?
rmf
Novice
 
Posts: 4
Liked: never
Joined: Thu Jan 15, 2015 7:59 pm
Full Name: Ryan

Re: pick path job modification cmdlet

Veeam Logoby v.Eremin » Fri Jan 16, 2015 9:29 am

Hi, Ryan,

Just to be sure - you're willing to create HV replication job and looking for a way to specify these settings via PS, right?

Thanks.
v.Eremin
Veeam Software
 
Posts: 13296
Liked: 973 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: pick path job modification cmdlet

Veeam Logoby rmf » Fri Jan 16, 2015 2:58 pm

Thanks for the quick reply. That is correct. I want to add each VM and specify different storage/volume locations for each one within the pickpath option.
rmf
Novice
 
Posts: 4
Liked: never
Joined: Thu Jan 15, 2015 7:59 pm
Full Name: Ryan

Re: pick path job modification cmdlet

Veeam Logoby v.Eremin » Mon Jan 19, 2015 10:59 am

So far, I have been able to find a way to update destination of configuration files only:

Code: Select all
$Job = Get-VBRJob -Name "Name of your replication job"
$Object = Get-VBRJobObject -Job $Job -name "Name of an object added to Pick path window"
$Info = $Object.Info

$Info.ExtendedOptions.TargetOptions.TargetFolder = "New path"
[Veeam.Backup.Core.CObjectInJob]::Update($Info)


The VHD destination settings are located in $Info.ExtendedOptions.TargetOptions.VhdDestination, but I haven't found a way to successfully modify them. May be you'd be more successful.

Thanks.
v.Eremin
Veeam Software
 
Posts: 13296
Liked: 973 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 10 guests