ADVERTISE HERE

Veeam: How to change the Job notification settings with Powershell

Title: Veeam: How to change the Job notification settings with Powershell
Author(s): (ICT-Freak.nl) Arne Fokkema
Target Audience: Technical - Intermediate
Current Revision:
First Published: 18 May 2011
Products: VMware, vSphere
UID: XD10415

Just a quick post about how Powershell can help you change the VM attribute option in Veeam Backup & Replication

Punchy Text: 

Just a quick post about how Powershell can help you change the VM attribute option in Veeam Backup & Replication

By Arne Fokkema - ICT-Freak.nl


Today just a quick post about how Powershell can help you change the VM attribute option in Veeam Backup & Replication. Imagine that you have 20 backup jobs and you want or need to change the VM attribute settings. You can do this for every job with 10 mouse clicks or you can do it in five seconds by running the script from this post.

This is the setting I am talking about from the GUI:

Advanced Settings

When you change the “Notes” value to some custom fields in your environment, the script will apply this setting for you.

if((Get-PSSnapin -Name VeeamPSSnapIn -ErrorAction SilentlyContinue) -eq $null){
Add-PSSnapin "VeeamPSSnapIn"
}

$vbrserver = Get-VBRServer | Where {$_.Type -eq "VC"}
Foreach($vbrjob in (Get-VBRJob)){
$options = $vbrjob.GetOptions()
$options.VmAttributeName = "Notes"
$options.SetResultsToVmNotes = $true
$vbrjob.SetOptions($options)
}

 

The first three lines of code checked if the VeeamPSSnapIn is loaded, if this is not the case it will be loaded via the Add-PSSnapin.

  • The backup options will be loaded via the .GetOptions() method.
  • VmAttributeName is the value which you normally enter in the attribute field.
  • SetResultsToVmNotes is the checkbox to enable this setting.
  • via .SetOptions() method you can apply the new settings.

Spotlight:

VMware Documentation Downloader v11.08.30

Updated for vSphere 5 - A free tool for those on the move who need information FAST

vSphere 5 License Entitlement Changes

See what has changed in the license entitlement in vSphere 5?

Thin Client vs Zero Client

The differences between Thin and Zero desktop clients for VDI

Technology Exchange: