-
- Novice
- Posts: 4
- Liked: never
- Joined: Jan 15, 2015 7:59 pm
- Full Name: Ryan
- Contact:
pick path job modification cmdlet
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?
-
- 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
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.
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.
-
- Novice
- Posts: 4
- Liked: never
- Joined: Jan 15, 2015 7:59 pm
- Full Name: Ryan
- Contact:
Re: pick path job modification cmdlet
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.
-
- 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
So far, I have been able to find a way to update destination of configuration files only:
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.
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)
Thanks.
Who is online
Users browsing this forum: Google [Bot] and 5 guests