GET-IT: TEAMS DAY | 1-Day Free Virtual Conference all about Teams. Here on - 8/12/20 GET-IT: TEAMS DAY - 8/12/20

Anyone good with PowerShell

Home Forums Messaging Software Exchange 2007 / 2010 / 2013 Anyone good with PowerShell

Viewing 1 post (of 1 total)
  • Author
  • Avatar

    I’m not the best with power shell and I need some help. We have a script that we used to use on exchange 2007 to recall emails. It looked like this:

    $csv = Import-CSV “C:hereAuditLogResults.csv” -Header @(“Sender”,”Recipient”) | ForEach { Get-Mailbox $_.Recipient | Export-Mailbox -SenderKeywords $_.Sender -RecipientKeywords $_.Recipient -DeleteContent -confirm:$false }

    This used to take my csv import file and take the sender and recipient and delete the mail that was sent to recipient. When we went to 2010 it broke.
    i know it needs to use the new cmd “New-MailboxExportRequest” but im still have issues. Can anyone help?


Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.