Script to enable BitLooker for all existing jobs.

PowerShell script exchange

Script to enable BitLooker for all existing jobs.

Veeam Logoby v.Eremin » Tue Jan 12, 2016 11:30 am 6 people like this post

So, you've just upgraded to version 9.

However, by default, new technology called BitLooker allowing customers to easily find and reduce useless chunks of data congesting their backup storage resources is disabled for all existing jobs to ensure the jobs do not change previous behaviors.

If you want to take an advantage of this new technology and don't want to change settings of all jobs manually, here's a short script for you that is supposed to make your life easier:

Code: Select all
asnp VeeamPSSNapin
foreach ($Job in Get-VBRJob | where {$_.JobType -eq "Backup" -or $_.JobType -eq "Replica"})
{
$Options = $Job.GetOptions()
$Options.ViSourceOptions.DirtyBlocksNullingEnabled = $True
$Job.SetOptions($Options)
}


Thanks.
v.Eremin
Veeam Software
 
Posts: 12703
Liked: 920 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Script to enable BitLooker for all existing jobs.

Veeam Logoby sbaltic » Wed Jan 13, 2016 5:14 pm

And where can i put this script?
sbaltic
Influencer
 
Posts: 22
Liked: 1 time
Joined: Mon Nov 18, 2013 6:10 pm
Full Name: Sebastijan

Re: Script to enable BitLooker for all existing jobs.

Veeam Logoby sbaltic » Wed Jan 13, 2016 5:17 pm

OK, sorry. This is the PS script .... my bad.
sbaltic
Influencer
 
Posts: 22
Liked: 1 time
Joined: Mon Nov 18, 2013 6:10 pm
Full Name: Sebastijan

Re: Script to enable BitLooker for all existing jobs.

Veeam Logoby v.Eremin » Thu Jan 14, 2016 10:25 am

You can run it either from VB&R server (Menu -> PowerShell) or from ordinary Windows PowerShell console. In former case, the first line that is supposed to add VB&R PowerShell snap-in is not needed. Thanks.
v.Eremin
Veeam Software
 
Posts: 12703
Liked: 920 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

[MERGED] Version 9 Powershell

Veeam Logoby jartisensi » Thu Jan 14, 2016 9:06 pm

I am trying to set the new option for VBR of Exclude deleted file blocks (recommended).
I have tried the $Job.getOptions() but I don't get anything related to advanced storage.
Anything help would be appreciated - BTW support couldn't help me on this either.
jartisensi
Lurker
 
Posts: 1
Liked: never
Joined: Thu Jan 14, 2016 8:54 pm
Full Name: James Artisensi

Re: Script to enable BitLooker for all existing jobs.

Veeam Logoby v.Eremin » Fri Jan 15, 2016 9:32 am

BitLooker options can be found in the $Options.ViSourceOptions. The parameter responsible for enabling and disabling exclusion of deleted file blocks is called DirtyBlocksNullingEnabled (bool). Thanks.
v.Eremin
Veeam Software
 
Posts: 12703
Liked: 920 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

[MERGED] Exclude deleted file blocks on all jobs

Veeam Logoby prwfwrd » Tue Apr 26, 2016 12:46 pm

We recently upgraded to Veeam 9 and want to use this option. However, we have several hundred jobs and rather than having to go edit them all manually, has anybody figured out a way to set this option for all jobs either via SQL or PowerShell? I opened a case # 01778069 and was told to inquire here. Thanks!
prwfwrd
Lurker
 
Posts: 1
Liked: never
Joined: Tue Apr 26, 2016 12:37 pm
Full Name: Paul Wilson

Re: Script to enable BitLooker for all existing jobs.

Veeam Logoby foggy » Tue Apr 26, 2016 1:29 pm

Paul, PowerShell script for that is right in the first post of this thread. Thanks.
foggy
Veeam Software
 
Posts: 14346
Liked: 1054 times
Joined: Mon Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson


Return to PowerShell



Who is online

Users browsing this forum: twesterd and 4 guests