Quantcast
Channel: R&D Forums
Viewing all articles
Browse latest Browse all 9949

Veeam Backup for Microsoft 365 • Re: Email search for a time period

$
0
0
You probably want something like this:

Code:

$restorePoints = Get-VBORestorePointforeach ($restorePoint in $restorePoints) {    if ($restorePoint.isExchange -eq $true) {        $session = Start-VBOExchangeItemRestoreSession -RestorePoint $restorePoint        $database = Get-VEXDatabase -Session $session        $mailbox = Get-VEXMailbox -Database $database -name abc@test.tenant.com        if ($mailbox) {        $item = Get-VEXItem -Mailbox $mailbox -query "from:abcdef@sender.com"        }        if ($item) {        Export-VEXItem -item $item -To "e:\date.competent.pst"        }        Stop-VBOExchangeItemRestoreSession -session $session         }    }}
You can use Start-VBOExchangeItemRestoreSession -RestorePoint $restorePoint -ShowDeleted:$true if you want to see deleted items.

Statistics: Posted by track1044 — Sep 22, 2025 1:33 pm



Viewing all articles
Browse latest Browse all 9949

Latest Images

Trending Articles



Latest Images