Powershell Uncheck Use Changed tracking Data

PowerShell script exchange

Powershell Uncheck Use Changed tracking Data

Veeam Logoby sidavid » Wed Jun 12, 2013 7:50 pm

Hi All,

Can someone help me to write a small powershell script to uncheck the Use Changed Tracking Data on all my jobs?

Code: Select all
Get-VBRJob | {
$vo = $job.GetOptions()
$vo.(Use Changed tracking Data, I do not know the option) = 0
$job.SetOptions($vo)
}


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

Re: Powershell Uncheck Use Changed tracking Data

Veeam Logoby v.Eremin » Thu Jun 13, 2013 8:39 am

I believe the following script will answer your requirements:

Code: Select all
asnp VeeamPSSnapin
foreach ($Job in Get-VBRJob)
{
$Options = $Job.GetOptions()
$Options.ViSourceOptions.UseChangeTracking = $False
$Job.SetOptions($Options)
}


Hope this helps.
Thanks.
v.Eremin
Veeam Software
 
Posts: 13290
Liked: 971 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Powershell Uncheck Use Changed tracking Data

Veeam Logoby sidavid » Thu Jun 13, 2013 3:05 pm

Hi
Good thanks!
And just to my knowledge if I want to put the Enable CBT for all protected VM at ON.
Do you know the command?
Thanks
sidavid
Enthusiast
 
Posts: 60
Liked: never
Joined: Sun Jan 01, 2006 1:01 am

Re: Powershell Uncheck Use Changed tracking Data

Veeam Logoby v.Eremin » Thu Jun 13, 2013 3:16 pm

Yep, all you need to do is to replace $False absolute symbol with $True one:

Code: Select all
asnp VeeamPSSnapin
foreach ($Job in Get-VBRJob)
{
$Options = $Job.GetOptions()
$Options.ViSourceOptions.UseChangeTracking = $True
$Job.SetOptions($Options)
}


Hope this helps.
Thanks.
v.Eremin
Veeam Software
 
Posts: 13290
Liked: 971 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Powershell Uncheck Use Changed tracking Data

Veeam Logoby sidavid » Sat Jun 15, 2013 1:03 am

Hi,
Hum, I mean to configure the CBT, you have 2 checks boxes, I mean the checkbox of the bottom. This one $Options.ViSourceOptions.UseChangeTracking is for the checkbox on the top.
Thanks
sidavid
Enthusiast
 
Posts: 60
Liked: never
Joined: Sun Jan 01, 2006 1:01 am

Re: Powershell Uncheck Use Changed tracking Data

Veeam Logoby v.Eremin » Mon Jun 17, 2013 8:26 am

Ok, then the following line should be added:

Code: Select all
asnp VeeamPSSnapin
foreach ($Job in Get-VBRJob)
{
$Options = $Job.GetOptions()
$Options.ViSourceOptions.UseChangeTracking = $True
$Options.ViSourceOptions.EnableChangeTracking = $True
$Job.SetOptions($Options)
}


Hope this helps.
Thanks.
v.Eremin
Veeam Software
 
Posts: 13290
Liked: 971 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Powershell Uncheck Use Changed tracking Data

Veeam Logoby sidavid » Mon Jun 17, 2013 11:41 am

Thanks work! Many thanks
sidavid
Enthusiast
 
Posts: 60
Liked: never
Joined: Sun Jan 01, 2006 1:01 am

Re: Powershell Uncheck Use Changed tracking Data

Veeam Logoby v.Eremin » Mon Jun 17, 2013 12:02 pm

You’re welcome. Should any other help be needed, feel free to contact us. Thanks.
v.Eremin
Veeam Software
 
Posts: 13290
Liked: 971 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 8 guests