Hello,
With some people help me, I have this "script" to get all differents malwares detections based on date + VM name + Path.
This is usefull to avoid read several files.
$Path = "C:\ProgramData\Veeam\Backup\Malware_Detection_Logs\"
$Files = (Get-ChildItem -Path $Path).FullName
Select-String -Path $Files -Pattern '^\\(?<Date>;^\]]+).+\s(?<VM>;^:]+):.+?:(?<File>.+)' -AllMatches |
ForEach-Object {
$match = $_.Matchess0]
PSCustomObject]@{
Date = $match.Groupss'Date'].Value
VM = $match.Groupss'VM'].Value
File = $match.Groupss'File'].Value
}
} |
Sort-Object VM, File -Unique
![](https://uploads-eu-west-1.insided.com/veeam-en/attachment/e209640d-4e4b-48b0-8b19-cc2a4c63464f.png)