Code: Select all
vbrjob = Get-VBRJob | where {$_.name -eq $job.JobName}
$options = $vbrjob.GetOptions()
$options.VmAttributeName = "Veeam"
$options.SetResultsToVmNotes = $true
$vbrjob.SetOptions($options)
Code: Select all
vbrjob = Get-VBRJob | where {$_.name -eq $job.JobName}
$options = $vbrjob.GetOptions()
$options.NotificationOptions | gm
Name MemberType Definition
---- ---------- ----------
Equals Method bool Equals(System.Object obj)
GetHashCode Method int GetHashCode()
GetType Method type GetType()
ToString Method string ToString()
EmailNotification Property System.Boolean EmailNotification {get;set;}
EmailNotificationAddresses Property System.String EmailNotificationAddresses {get;set;}
SnmpNotification Property System.Boolean SnmpNotification {get;set;}
There are no options for setting the vmattributename. Is it hidden somewhere else or left out of 6.0? I see it in $options.Options.RootNode, but am unable to set it there.
Thanks in advance.