-DeleteContent switch for Search-Mailbox Cmdlet does not work

Apologies if this isn't the right forum for this question. 
I'm having trouble with the Search-Mailbox cmdlet, specifically when I'm attempting to use the -DeleteContent switch in order to delete a message from a specific user's mailbox. 
I attempt to run the command: 
Search-Mailbox -identity "Some User" -DeleteContent -SearchQuery 'Subject:"Spam Email Subject Heading"'
And I get:
A positional parameter cannot be found that accepts argument '-DeleteContent'.
    + CategoryInfo          : InvalidArgument: (:) [Search-Mailbox], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Search-Mailbox
Any idea what could be causing this issue? It's as if the shell does not recognize the existence of the -DeleteContent switch. I have no issues at all with the Search-Mailbox cmdlet except when it comes to using that switch. 
Some background:
- Yes, I am running the shell as an admin.
- I'm running EMS on my Exchange server itself through an RDS instance.
- Running Exchange Server 2010 - Version: 14.03.0181.006
- My user account is a member of: Discovery Management, Organization Management, Recipient Management, Records Management, Server Management, and UM Management.
Thank you in advance for any help any of you can provide!

The exchange blog team has contained
here with good explanation in detail about removing the specific user mailbox in exchange 2010. Please check this.

Similar Messages

  • Lion 10.7.1. Searching on iCal does not work

    I have Lion 10.7.1. Searching on iCal does not work. Also, I tried searching form the  spotlight search , it does not retrieve calendar entries. Note: my calendar files are on an encrypted disk image (but I enable the disk image , I can see the calendar).
    Any advice ?
    Dag

    I have been searching for an answer to this problem for about 6 months.  I took it to 2 genius'! Neither could find the problem and suggested I completely wipe my hard drive and reinstall all the software.  There ahs to be another way!

  • I've become increasingly frustrated with the ipad adobe app. I've subscribed to be able to convert my pdf files into word documents and it has yet to work I've paid for a service that does not work which in turn makes me a disgruntled customer to say the

    I've become increasingly frustrated with the ipad adobe app. I've subscribed to be able to convert my pdf files into word documents and it has yet to work I've paid for a service that does not work which in turn makes me a disgruntled customer to say the least very disappointed with such horrible service

    Which service did you subscribe to?  Adobe PDF Pack?
    Once I know the service that you subscribed to, I can move this post to the right forum so that you can get in touch with the folks who can assist you.

  • [svn] 3390: Fix for SDK-17067 - @exampleText does not work in mxml comments

    Revision: 3390
    Author: [email protected]
    Date: 2008-09-26 15:08:34 -0700 (Fri, 26 Sep 2008)
    Log Message:
    Fix for SDK-17067 - @exampleText does not work in mxml comments
    Fix for SDK-17076 - Mxml component with id but no mxml comment is not added to generated document
    QA: Yes
    Doc:
    Reviewed By: Pete
    Tests: checkintests
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17067
    http://bugs.adobe.com/jira/browse/SDK-17076
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/TopLevelClassesGenerator.ja va
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/ImplementationGenerator.java

    Wow, that's an interesting one - seems as though the sharedCursorPane has
    some hard requirement that the base App be mx (this isn't terribly
    surprising, considering it was built with the mx components, but it's still
    a bug). Can you link against the source code (provided for player 10 now!),
    and change that line in sharedCursorPane :
    From :
    Application(mx.core.Application.application).stage.removeEventListener(Mouse
    Event.MOUSE_MOVE, onMouseMove);
    To :
    stage.removeEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
    and see if that works for you? I can't honestly tell why we're using the
    line that was there... It's possible this was a workaround for another
    issue. Anyhow, if you wouldn't mind being the guinea pig for this one, we
    can get to the bottom of it.
      thanks!
       nigel

  • Unix Command install updates for 10.9 Mavericks does not work

    Unix Command install updates for 10.9 Mavericks does not work
    These commands no longer work with 10.9
    softwareupdate -i -a
    softwareupdate -d
    Are there new unix commands for 10.9 to install updates?

    Now that Safari 7.0.3 is out there is actually something to update, here is the results:
    SYSTEM2 (192.168.1.6)
    Software Update Tool
    Copyright 2002-2012 Apple Inc.
    Finding available software
    Downloading Safari
    Downloaded Safari
    Installing Safari
    Done with Safari
    Done.
    Get Info on the system shows:
    Modified: Today 10:15
    Version: 7.0.3, Copyright © 2003-2014 Apple Inc.
    Regards,
    Shawn

  • For some days imessage does not work, neither on ipad nor on iphone. also email on iphone does not work.

    for some days imessage does not work, neither on ipad nor on iphone. also email on iphone does not work.

    Hello Redpanda68,
    The following article provides information and troubleshooting steps that can help get Messages and Mail working.
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    iOS: Troubleshooting Mail
    http://support.apple.com/kb/TS3899
    Cheers,
    Allen

  • Waht is the email address to report a refund. I paid monthly subscription for Fring but it does not work and Fring support asked me to report this to Apple support.?

    Waht is the email address to report a refund. I paid monthly subscription for Fring but it does not work and Fring support asked me to report this to Apple support? I'm not aable to report this issue to the right people??

    For issues with an iTunes Store purchase, email:
    http://apple.com/support/itunes/contact/

  • Search in ADF does not work

    Hello.
    I have created a search form with two iterators one for the results and the other for the search criteria. The search form works as expected. The name of the view that i am using is "MasterPartyView1". When i execute the following code
    ViewObject voMasterParty = appMod.findViewObject("MasterPartyView1");
    voMasterParty.setWhereClause("Id = " + MasterPartyId);
    voMasterParty.executeQuery();
    Row rowDest = voMasterParty.first();
    in a backing bean and i go to the search form the only result that i a have is the row that i found in this statement (voMasterParty.setWhereClause("Id = " + MasterPartyId);).
    Why is that?The adf search does not go every time in the database to fetch rows?
    the only workaround for the moment is that i put these two extra lines in the backing bean
    voMasterParty.setWhereClause(null);
    voMasterParty.executeQuery();
    which is not correct because i am fetching all the rows from the database i think.
    Thank you in advance
    Periklis

    Frank thanks a lot for your answer but i still have some questions.
    1 question: One workaround that i found is to the search with the view named MasterPartyView1 and have another instance of the view object(MasterPartyView2) in order to perform the custom search(setwhereclause).This seems to work. Is this approach correct?
    2 question: if i understood correctly you say that both iterators point to the result set of the query (one row) and such is not possible to find other rows. But in the search form there is an invoke action
    <invokeAction id="AlwaysInFindMode" Binds="Find"
    RefreshCondition="${bindings.MasterPartyView1SearchIterator.findMode == false}"/>
    that to my understanding puts the iterator in Find mode, thus making the input text fields available for criteria again. So the search iterator now points to QBE and it is possible to iterate over a collection of QBE criteria rows. is this correct?And if it is why it does not work as expected?Why it does not bring other results?Why the iterators (the seach iterator and the results iterator) still point to the newly created result set?
    Thanks in advance
    Periklis

  • Lenovo OneKey Recovery for Windows 7 64bit does not work

    Does anyone have a patch or new release link for Lenovo OneKey Recovery? I recently bought a G450 and Win 7 Ultimate-64bit separately, there is no link available in the support and download page under this model yet. I tried installing the Vista 64 bit version and still does not work as well. I did a clean install downloaded the drivers from the Lenovo support page.
    Solved!
    Go to Solution.

    You haven't provided a link to the page you are trying to download from. On top and at the right of most download pages there should be a red loud speaker next to the print page button, just click on it in order to report a faulty download or possible other problems with the page.
    Is the following page the page you were trying to download from? If so you can submit direct feedback if the download doesn't work for you.
    http://support.lenovo.com/en_US/downloads/detail.p​age?DocID=DS009179
    Andy  ______________________________________
    Please remember to come back and mark the post that you feel solved your question as the solution, it earns the member + points
    Did you find a post helpfull? You can thank the member by clicking on the star to the left awarding them Kudos Please add your type, model number and OS to your signature, it helps to help you. Forum Search Option T430 2347-G7U W8 x64, Yoga 10 HD+, Tablet 1838-2BG, T61p 6460-67G W7 x64, T43p 2668-G2G XP, T23 2647-9LG XP, plus a few more. FYI Unsolicited Personal Messages will be ignored.
      Deutsche Community     Comunidad en Español    English Community Русскоязычное Сообщество
    PepperonI blog 

  • How do I set Firefox 10.0.2 to be default browser in Windows 7, using a script or setup switch. "Firefox.exe -setDefaultBrowser" does NOT work.

    I want to set Firefox as default browser for all my users.
    I can do this by opening Firefox and go to Tools --> Options --> Advanced and hit the "Check now" button. That works fine, but I need to accomplish this automatically.
    Running setup with the -setDefaultBrowser switch does NOT work. Running "firefox.exe -silent -SetDefaultBrowser" after setup does NOT work.
    Is this even possible? Or are we stuck with IE?

    Thank you for your reply, however it really does not work for me.
    I have Firefox installed, as well as Internet Explorer 9. If I check "Default Programs --> Set Default Programs" in Windows 7 it states that Internet Explorer is default.
    If I create a shortcut on my desktop that points to "www.mozilla.org" for example, and double-click that shortcut, it will open in Internet Explorer.
    I now run "%ProgramFiles%\Mozilla Firefox\Firefox.exe -silent -setDefaultBrowser" with administrative privileges.
    I look again in "Default programs" and i still says IE is default browser. If I click on my shortcut it still opens in IE.
    If I change the setting manually from within Firefox it works fine.
    Please help, I really can't make this work.

  • I downloaded today 09.19.2013 iOS 7 on my iphone 4 and iPad retina. Unfortunately on the camera app the switch from photo to video does not work neither on iphone nor on ipad. Is it a "youth" bug ?

    I downloaded ios 7 today 09.19.2013 on my iphone 4 and ipad retina 3hrd generation 64g . The switch from photo to video on the camera app does not work neither on iphone nor on ipad. Is it a "youth"bug ?

    Did you try swipe up and down to change?

  • TS1702 HOW TO CANCEL AN SUBSCRITION  FOR AN APPLICATION THAT DOES NOT WORK

    HOW TO CANCEL AN SUBSCRITION  FOR AN APPLICATION THAT DOES NOT WORK

    Please stop SHOUTING at us.
    http://support.apple.com/kb/ht4098

  • URL for Downloading Licensed FlashPlayer Does Not Work

    I reapplied for a license to distribute FlashPlayer back in October and was granted a license and a specific URL to download FlashPlayer for distribution on our intranet.  The URL does not work and instead of downloading FlashPlayer the only option is to apply for another license.  I attempted to engage Adobe via Chat and they said I have to post here, but this does not make a lot of sense since the email with the license said the URL for downloading may not be shared with anyone, hence why I am not posting here.
    So have others received a license from Adobe with a non-working URL?  How did you get someone at Adobe to respond?

    Hi Eddie,
    I will forward this to the Licensing folks and will post back when I have a response.
    Maria

  • My serial number for Photoshop Elements 7 does not work.

    I downloaded Photoshop Elements 7 but my registered serial number does not work.

    Error "The serial number is not valid for this product" | Creative Suite

  • How do I get a refund for an App that does not work correctly?

    How do I get a refund for a App (Express Newspapers)  that does not work correctly?

    How to report an issue with Your iTunes Store purchase

Maybe you are looking for

  • Error while iserting a image in DB!!!!!

    Hello guys, I want to insert an image in the DB(MySql). I receive a compiling error when i try to insert an image. I tried to find in the forums.. but i could not find it.. here is my code.. public void insertImage(String name, String path){         

  • Modifying datatype of columns across multiple tables

    Hi, I have a requirement where-in I have to modify the datatypes of columns across multiple tables. Is there any direct way to do this? I mean does oracle has any function or in-built functionality to achieve this. Example; Table1 -> col1 datatype ne

  • How to view song's metadata in xmms?

    Hello! I am using the version of xmms currently available in arch (1.2.10). Everything works well, but I am intrigued about something: how can I see the file's metadata/tags? If I use mpg321 I get $ mpeg321 polar.mp3 High Performance MPEG 1.0/2.0/2.5

  • Please help whit sound blaster 5.1 Live 16 bit in windows vi

    Where do i find sound blaster 5. Li've! 6bit drivers for windows vista? i installed its driver from cd but that is only for win XP and i only hear the front speaker left and right ... what should i do ?

  • MSI P67-A GD53 Triple Power Cycle

    Hi all, 1st of all let me introduce myself, my name is Damien and I have been a PC enthusiast ever since I built my 1st PC when I was 10 years old (15 years ago), I am a massive fan of the PC gaming scene etc and have always played games on my PC bec