Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Retract Spam Email from Exchange 2010

Posted on 2014-02-24
9
Medium Priority
?
554 Views
Last Modified: 2014-02-25
Is it possible to retract one email from all mailboxes in exchange 2010?
Say a spam email gets through and we want to delete it before everyone has a chance to open it and click on something they shouldn't, how can I remove that message from their mailbox?
0
Comment
Question by:Winsoup
  • 5
  • 4
9 Comments
 
LVL 8

Accepted Solution

by:
Jeff Perry earned 2000 total points
ID: 39882528
0
 
LVL 3

Author Comment

by:Winsoup
ID: 39882664
I got to the point of deleting it. I can run the log and successfully see that there is an email out there to delete. (just one I am using for testing) When I run the delete command:
Get-mailbox | search-mailbox –searchquery “Subject:’virus’” –DeleteContent

I get this error:
The target mailbox or .pst file path is required.
    + CategoryInfo          : InvalidArgument: (:) [], ArgumentException
    + FullyQualifiedErrorId : 72962C6B

Invoke-Command : Cannot write input as there are no more running pipelines
At C:\Users\username\AppData\Roaming\Microsoft\Exchange\RemotePowerShell\name.domain.local
cal.psm1:42015 char:29
+             $scriptCmd = { & <<<<  $script:InvokeCommand `
    + CategoryInfo          : InvalidOperation: (:) [Invoke-Command], PSInvalidOperationException
    + FullyQualifiedErrorId : NoMoreInputWrite,Microsoft.PowerShell.Commands.InvokeCommandCommand
0
 
LVL 8

Expert Comment

by:Jeff Perry
ID: 39882701
Have you tried adding back -TargetMailbox and possibly -TargetFolder after the -DeleteContent command?

I know that every time someone asks me to do something like this it is always a pain.
0
Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

 
LVL 3

Author Comment

by:Winsoup
ID: 39882741
I added back targetmailbox and targetfolder and now I get this error for all mailboxes.

The input object cannot be bound to any parameters for the command either because the command does not take pipeline input
or the input and its properties do not match any of the parameters that take pipeline input.
0
 
LVL 8

Expert Comment

by:Jeff Perry
ID: 39883224
All I can think of is try -targetmailbox only after -Deletecontent

Like I said everytime I have been asked to do this specific thing (find an email in all mailboxes or single mailbox) and delete it I always run into issues.
0
 
LVL 3

Author Closing Comment

by:Winsoup
ID: 39883662
This works, I screwed up the Permissions part of it at the beginning of that article so I didn't have rights to delete anything. Once that was fixed that then it worked fine.
Thank you!
0
 
LVL 8

Expert Comment

by:Jeff Perry
ID: 39883742
Thanks, glad you got it worked out.
0
 
LVL 3

Author Comment

by:Winsoup
ID: 39884132
Sorry one more question on this.
Is there a way to force it to delete right away without having to refresh or restart outlook? The command is working but I can still access the email until I restart Outlook.
0
 
LVL 8

Expert Comment

by:Jeff Perry
ID: 39885500
A server side change should be reflected within about 30 seconds or so.

If your mailbox did not reflect the change within that time or took significantly longer you might have another issue.

Here is a link to an article about the sync intervals.

http://www.msoutlook.info/question/300
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As much as Microsoft wants to kill off PST file support, just as they tried to do with public folders, there are still times when it is useful or downright necessary to export Exchange mailboxes to PST files. Thankfully, it is still possible to e…
With so many activities to perform, Exchange administrators are always busy in organizations. If everything, including Exchange Servers, Outlook clients, and Office 365 accounts work without any issues, they can sit and relax. But unfortunately, it…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

783 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question