Veeam: How to change the Job notification settings with Powershell
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:
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.
- xtravirt's blog
- Login or register to post comments
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

