PowerShell script exchange
Locked
v.Eremin
Veeam Software
Posts: 15150
Liked: 1141 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Script to enable BitLooker for all existing jobs.

Post by v.Eremin » 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.

sbaltic
Enthusiast
Posts: 26
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 » Jan 13, 2016 5:14 pm

And where can i put this script?

sbaltic
Enthusiast
Posts: 26
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 » Jan 13, 2016 5:17 pm

OK, sorry. This is the PS script .... my bad.

v.Eremin
Veeam Software
Posts: 15150
Liked: 1141 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Script to enable BitLooker for all existing jobs.

Post by v.Eremin » 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.

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 » 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.

v.Eremin
Veeam Software
Posts: 15150
Liked: 1141 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Script to enable BitLooker for all existing jobs.

Post by v.Eremin » 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.

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 » 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!

foggy
Veeam Software
Posts: 16839
Liked: 1361 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 » Apr 26, 2016 1:29 pm

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 8 guests