Audit modifiche ai job

Quando viene modificato un job viene loggato uno di questi tre eventi1):

Questo script raccoglie gli eventi di modifica:

$Date = Get-Date 01/02/2016
$VeeamServer = "srv-veeam"
 
$colItems = Get-EventLog -LogName "Veeam Backup" -Source "Veeam MP" -After $Date -EntryType Information -ComputerName $VeeamServer | Where InstanceId -like '230*' | Select-Object TimeGenerated,InstanceId,Message
 
foreach ($objItem in $colItems) {
  switch ($objItem.InstanceId) { 
    23010 {Write-Host $objItem.TimeGenerated,, $objItem.Message} 
    23050 {Write-Host $objItem.TimeGenerated,, $objItem.Message -ForegroundColor Yellow} 
    23090 {Write-Host $objItem.TimeGenerated,, $objItem.Message -ForegroundColor Red} 
  }      
}