Change Option in Bulk

PowerShell script exchange

Change Option in Bulk

Veeam Logoby sidavid » Sat Feb 04, 2012 5:49 pm

I want to change these settings:

failtonetwork at false
UseChangeTracking at true
EnableChangeTracking at true

for all my jobs.

I have tried this script but without success:

Get-VBRJob | foreach {
$job = Get-VBRJob | ?{$_.Name -eq $vbrjobname}
Set-VBRJobOptions ($job) -EnableChangeTracking True
Set-VBRJobOptions ($job) -failtonetwork False
Set-VBRJobOptions ($job) -UseChangeTracking True

Posts: 60
Liked: never
Joined: Sun Jan 01, 2006 1:01 am

Re: Change Option in Bulk

Veeam Logoby Sethbartlett » Sat Feb 04, 2012 11:04 pm

You cannot just do ChangedBlockTracking, etc the way you are wanting to do it.

Version 6
Code: Select all
$Job = Get-VBRJob | ?{$ -eq "JobName"}
$Options = $Job.Options
$Options.ViSourceOptions.UseChangeTracking = $true
$Options.ViSourceOptions.EnableChangeTracking = $true
$Options.ViSourceOptions.FailoverToNetworkMode = $false

If you need version 5, please let me know and make sure to post this when you ask powershell questions :D
Skype: Sethbartlett88 - Make sure to label who you are and why you want to add me ;)
Twitter: @sethbartlett
If my post was helpful, please like it. Sometimes twitter is quicker to hit me up if you need me.
Posts: 282
Liked: 25 times
Joined: Wed Nov 10, 2010 6:51 pm
Full Name: Seth Bartlett

Return to PowerShell

Who is online

Users browsing this forum: Google [Bot] and 7 guests