PowerShell script exchange
Post Reply
sidavid
Enthusiast
Posts: 63
Liked: 1 time
Joined: Jan 01, 2006 1:01 am
Contact:

Powershell Uncheck Use Changed tracking Data

Post by sidavid »

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

Re: Powershell Uncheck Use Changed tracking Data

Post by veremin »

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.
sidavid
Enthusiast
Posts: 63
Liked: 1 time
Joined: Jan 01, 2006 1:01 am
Contact:

Re: Powershell Uncheck Use Changed tracking Data

Post by sidavid »

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

Re: Powershell Uncheck Use Changed tracking Data

Post by veremin »

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.
sidavid
Enthusiast
Posts: 63
Liked: 1 time
Joined: Jan 01, 2006 1:01 am
Contact:

Re: Powershell Uncheck Use Changed tracking Data

Post by sidavid »

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

Re: Powershell Uncheck Use Changed tracking Data

Post by veremin »

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.
sidavid
Enthusiast
Posts: 63
Liked: 1 time
Joined: Jan 01, 2006 1:01 am
Contact:

Re: Powershell Uncheck Use Changed tracking Data

Post by sidavid »

Thanks work! Many thanks
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Powershell Uncheck Use Changed tracking Data

Post by veremin »

You’re welcome. Should any other help be needed, feel free to contact us. Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests