I have come up with a way to modify description but I haven't done a full look to see if there are any unwanted side effects/issues. Any gotchas I should be on the lookout for?
Code: Select all
$updatedInfo = [Veeam.Backup.Model.CDbBackupJobInfo]::CreateNew(
$Job.Info.ID,
[Veeam.Backup.Model.CDbJobCommonInfo]::new($Job.Info.CommonInfo.Name,"NEW DESCRIPTION HERE",$Job.Info.CommonInfo.ModifiedBy),
$Job.Info.jobType,
$Job.Info.targetHostId,
$Job.Info.targetDir,
$Job.Info.targetFile,
$Job.Info.options,
$Job.Info.ScheduleOptions,
$Job.Info.vssOptions,
$Job.Info.vcbHostId,
$Job.Info.SourceType,
$Job.Info.targetType,
$Job.Info.includedSize,
$Job.Info.excludedSize,
$Job.Info.BackupPlatform,
$Job.Info.targetRepositoryId,
$Job.Info.InitialRepositoryId,
$Job.Info.parentScheduleId,
$Job.Info.pwdKeyId,
$Job.Info.BackupPolicyTag,
$Job.Info.sqlEnabled,
$Job.Info.oracleEnabled
)
[Veeam.Backup.Core.CBackupJob]::Update($updatedInfo)