PowerShell script exchange
Locked
veremin
Product Manager
Posts: 20261
Liked: 2249 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Script to enable BitLooker for all existing jobs.

Post by veremin » 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.
sbaltic
Enthusiast
Posts: 31
Liked: 1 time
Joined: Nov 18, 2013 6:10 pm
Full Name: Sebastijan
Contact:

Re: Script to enable BitLooker for all existing jobs.

Post by sbaltic »

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

Re: Script to enable BitLooker for all existing jobs.

Post by sbaltic »

OK, sorry. This is the PS script .... my bad.
veremin
Product Manager
Posts: 20261
Liked: 2249 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Script to enable BitLooker for all existing jobs.

Post by veremin »

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.
jartisensi
Lurker
Posts: 1
Liked: never
Joined: Jan 14, 2016 8:54 pm
Full Name: James Artisensi
Contact:

[MERGED] Version 9 Powershell

Post by jartisensi »

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

Re: Script to enable BitLooker for all existing jobs.

Post by veremin »

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.
prwfwrd
Lurker
Posts: 1
Liked: never
Joined: Apr 26, 2016 12:37 pm
Full Name: Paul Wilson
Contact:

[MERGED] Exclude deleted file blocks on all jobs

Post by prwfwrd »

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!
foggy
Veeam Software
Posts: 21069
Liked: 2115 times
Joined: Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson
Contact:

Re: Script to enable BitLooker for all existing jobs.

Post by foggy »

Paul, PowerShell script for that is right in the first post of this thread. Thanks.
Locked

Who is online

Users browsing this forum: No registered users and 12 guests