Announcement

Collapse
No announcement yet.

Anyone good with PowerShell

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Anyone good with PowerShell

    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:\here\AuditLogResults.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?

    -Thanks!

  • #2
    Re: Anyone good with PowerShell

    With a Mailbox search you can but that script will delete all email from the sender to the recipient. You'll have to be more specific or you're gonna wipe out a lot of email.

    http://technet.microsoft.com/en-us/l...xchg.141).aspx

    Do you have an specific questions about crafting the script?
    Regards,
    Jeremy

    Network Consultant/Engineer
    Baltimore - Washington area and beyond
    www.gma-cpa.com

    Comment

    Working...
    X