PowerShell script exchange
Post Reply
rmf
Novice
Posts: 4
Liked: never
Joined: Jan 15, 2015 7:59 pm
Full Name: Ryan
Contact:

pick path job modification cmdlet

Post by rmf »

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?
veremin
Product Manager
Posts: 20284
Liked: 2258 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: pick path job modification cmdlet

Post by veremin »

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.
rmf
Novice
Posts: 4
Liked: never
Joined: Jan 15, 2015 7:59 pm
Full Name: Ryan
Contact:

Re: pick path job modification cmdlet

Post by rmf »

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.
veremin
Product Manager
Posts: 20284
Liked: 2258 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: pick path job modification cmdlet

Post by veremin »

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.
Post Reply

Who is online

Users browsing this forum: No registered users and 16 guests