All user mailbox search not working correctly

I have just started a job at a new company as their exchange admin. One of the tasks they want me to do is delete a few
spam emails that went out to many users. I planned on using the search-mailbox cmd to find them and then delete the email messages. However I cannot seem to get this to work right for me. 
The commands I've tried are 
Get-Mailbox -server server01 | Search-Mailbox -SearchQuery 'Subject:"Alert:Somebody has run a back*"' -TargetMailbox "mymailbox" -TargetFolder "test" -LogOnly -LogLevel Full
Get-Mailbox -database database1 | Search-Mailbox -SearchQuery 'Subject:"Alert:Somebody has run a back*"' -TargetMailbox "mymailbox" -TargetFolder "test" -LogOnly -LogLevel Full
Get-Mailbox -resultsize unlimited | Search-Mailbox -SearchQuery 'Subject:"Alert:Somebody has run a back*"' -TargetMailbox "mymailbox" -TargetFolder "test" -LogOnly -LogLevel Full
These all run normally, however the results message in outlook that I get is "The search has Failed." Says errors:
None. Searched 173 mailboxes. 
If I change the command to this: 
Get-Mailbox -identity user1 | Search-Mailbox -SearchQuery 'Subject:"Alert:Somebody has run a back*"' -TargetMailbox "mymailbox" -TargetFolder "test" -LogOnly -LogLevel Full
The search comes back and I get the email i'm looking for. So it works as expected with only one user selected. 
Does anyone have any ideas on what could cause the multi-mailbox search to not function as expected?

Is the account you are using a member of the domain admins group?
I think there is a Full Access = Deny permission that might come into play.
By default, domain admins cannot access mailboxes (even though, of course, they could change permissions to make that possible).
EDIT - I do see it worked on  one mailbox - I'm not sure how the permissions may have been configured.
This is the cmdlet I used to see permissions. Domain Admins *do* have full ADPermissions
Get-Mailbox user1 | Get-MailboxPermission
Please mark as helpful if you find my contribution useful or as an answer if it does answer your question. That will encourage me - and others - to take time out to help you.

Similar Messages

  • GRC 10.0: Access Request Creation - LDAP user advanced search not working

    Dear Experts,
    We are implementing SAP GRC Access Control and we have an issue in Access Request Creation. If we put the user name in “User” field and press intro, the user details are updated, but if we want to make an "Advanced search" the user is not found and the application give us the following message: “No records found for the search criteria entered.”
    Scenario 1: If we put the user name in “User” field and press intro, the user details are updated:
    Scenario 2: If we want to make an "Advanced search" the user is not found and the application give us the following message: “No records found for the search criteria entered.”
    We are using the Active Directory as Data Source.
    Thanks and Regards.

    Hi Jose,
    Try maintaning the parameter 2050 as YES and check once.
    Kindly, also make refer to  the below list of SAP notes:
    1757906 - GRC 10.0 - LDAP user search does not work in NWBC
    1745370 - LDAP search in GRC does not work anonymously
    1718242- UAM: User search not working in Access Request.
    Regards,
    Neeraj Agarwal

  • Search not working correctly on HTMLDB Forums

    Greetings,
    I cant seem to get any clickable results from the forums search. Each comes back with a message saying the server is overload (or some such message) though if I follow the htmldb forums (the regular page views) and click on any link, it works perfectly.
    Is anyone else experiencing this?
    thx in Advance,
    cliff

    Cliff,
    Please report this in the Member Feedback Forum: Community Feedback (No Product Questions)
    Thanks,
    - Scott -

  • TS1702 IOS 6.0.1 maps Search not working correctly

    Previous version maps was able to search locations and find directions. After I upgraded to 6.0.1 now it is not able to find the same location. Nor is it able to find any direction from 2 places

    I just got iPhone 4 (iOS 6.0.1) and I tried to Open Maps but its even didnt show me my current location, its just was grids and a circle which represents current location, no map just grids... and even its not loading local weather and App Store.

  • Query is not working correctly

    Hi all,
    Below query is not working correctly. Please let me know, if you find the mistake
    select
    a.name,
    b.VOD_NAME,
    count(xm.ATTRIB_03)
    from
    siebel.s_vod b
    left outer join ISS_OBJ_DEF c on b.OBJECT_NUM=c.PAR_VOD_ID
    left outer join vod d on c.VOD_ID=d.row_id
    left outer join PROD_INT a on d.OBJECT_NUM=a.CFG_MODEL_ID
    left outer join PROD_INT_XM xm on a.row_id=xm.PAR_ROW_ID
    where
    b.VOD_TYPE_CD='CLASS_DEF'
    and
    c.LAST_VERS = 0
    and
    b.vod_name='Componentes'
    group by a.name,b.vod_name having count(xm.ATTRIB_03) >=5

    user9522927 wrote:
    Hi all,
    Below query is not working correctly. Please let me know, if you find the mistake
    select
    a.name,
    b.VOD_NAME,
    count(xm.ATTRIB_03)
    from
    siebel.s_vod b
    left outer join ISS_OBJ_DEF c on b.OBJECT_NUM=c.PAR_VOD_ID
    left outer join vod d on c.VOD_ID=d.row_id
    left outer join PROD_INT a on d.OBJECT_NUM=a.CFG_MODEL_ID
    left outer join PROD_INT_XM xm on a.row_id=xm.PAR_ROW_ID
    where
    b.VOD_TYPE_CD='CLASS_DEF'
    and
    c.LAST_VERS = 0
    and
    b.vod_name='Componentes'
    group by a.name,b.vod_name having count(xm.ATTRIB_03) >=5I couldn't see through the internet what happend when you ran said query. How about helping us out by showing us the evidence that it "is not working correctly".
    "Here's a picture of my car sitting in the driveway. Why won't it start?"

  • Search do not work correctly!?

    Hi! I I am using Search Criteria to search for data in DB. But Search do not work correctly.
    When I search using "Search in all fields:" then I can get needed info. But when I add some attributes and try to search then I get wrong results, see Search form: http://my.jetscreenshot.com/2677/20120820-stms-117kb
    I want that, if I add attributes "Type of Genetic Resource" and "Regional Forest District" and enter data, then my search form searches for results that is combinated from these 2 added fields.
    My Search Criteria You can see: http://my.jetscreenshot.com/2677/20120820-hdyg-141kb
    In Search Criteria I use Conjunction OR, I I change it to AND then above example works fine when I add 2 fields in advanced search, but then search using "Search in all fields:" DON'T work.
    Can anyone say where I am wrong, what I need to add or change in my Search criteria, so that all will work?
    If You do not understand something, or need more info, please let me know.
    Best regards, Debuger!

    Hi, Timo! Yes, I want to show results where 'type of resource' is correct and 'regional forrest...' is correct! Hope You understand me. If I use AND in Search criteria, see: http://my.jetscreenshot.com/2677/20120821-y8rw-155kb
    Then when I enter data in SearchAllFields it finds nothing...
    SearchAllFields means that I search in all attributes for given value and show results.
    I found that using Match all or Match Any option works for my previous VC, see: http://my.jetscreenshot.com/2677/20120821-g0nu-63kb
    How do You think, this is good solution? And maybe You know how to localize Match all or Match Any option?
    Best regards, Debuger!

  • The calendar sync is recently not working correctly, not display "All events" but it only displays the last six months for my individual entries. My repeating entires do go back further, though. How do I fix?

    I have an iPad 5.1.1. The calendar sync has started to not work correctly. I have it checked "All events," but it only displays the last two months for my individual entries. My repeating entires do go back further, though. How do I fix?

    HI Jason269. Thanks for your reply, however I wrote that I already have "All events" checked. If All Events is checked and it doesn't diaplay all events, how do I fix? It seems this is a common issue, as I have read many others on here state the same problem.
    I believe my problem occurred when I synced my iMac calendar to my iPad calendar using yahoo. Yesterday, I unsynced them on my iMac controls. When I checked my iPad calendar, all of my old entries reappeared - but only for five seconds and disappeared again. So, the data is saved and still there but cannot be displayed, even when I have All events checked. In fact, it only shows my individual entries for the last two months, but does show all my recurring entries. If I switched to last six months, I will see everything for the last six months. If I switch back to all events, it is only for the last two months.
    As I mentioned, others on here have expressed exactly the same issue, including the two month example and having used yahoo.
    For legal purposes, I need to be able to use the information from my indidual calendar entries in an upcoming court case. So I really need to fix this ASAP!

  • Mail search not working + Spotlight keeps indexing

    I have an old problem that has resurfaced after creating a new user on my Mac. Mail search brings no results and Spotlight is constantly indexing - day in, day out. It never seems to get there. I tried turning my hard drive to private in Spotlight settings and then taking it out. Previously Spotlight seemed to get bogged down with external drives now it's stuck indexing my Mac.
    Any advice? Is there a way I get unstick this?

    I can't believe that Apple have STILL not sorted this out. I haven't created a new user (so it's nothing to do with that), but Mail.app won't find anything when searching "Entire Message" in the current Mailbox or in "All Mailboxes". This has been ongoing since Leopard was first released, and we are now up to 10.5.8 without this being fixed.
    Here are some of the reports:
    Topic : Spotlight does not search Mail messages
    http://discussions.apple.com/thread.jspa?threadID=1366101
    Topic : Search "Entire Message" returns "0 Found" in mailboxes
    http://discussions.apple.com/thread.jspa?threadID=1341832
    Topic : Spotlight died on me
    http://discussions.apple.com/thread.jspa?threadID=1226645
    Topic : I can't search through my inbox!
    http://discussions.apple.com/thread.jspa?threadID=1387827
    Topic : Leopard's Spotlight doesn't search Mail messages
    http://discussions.apple.com/thread.jspa?threadID=1219030
    Topic : Mail Search
    http://discussions.apple.com/thread.jspa?threadID=1347387
    Topic : Mail Won't Search
    http://discussions.apple.com/thread.jspa?threadID=1204827
    Topic : Search does not work
    http://discussions.apple.com/thread.jspa?threadID=1254966
    Topic : Mail search not working
    http://discussions.apple.com/thread.jspa?threadID=1289253
    Topic : Unable to Search Mailbox
    http://discussions.apple.com/thread.jspa?threadID=1232504
    Topic : Why is Search in Mail.app busted?
    http://discussions.apple.com/thread.jspa?threadID=1403758
    Topic : Mail Search comes up empty
    http://discussions.apple.com/thread.jspa?threadID=1378473
    Topic : Search "Entire Message" not working with Smart Mailboxes?
    http://discussions.apple.com/thread.jspa?messageID=6548355&#6548355
    Topic : Mail searches yield no results! Smart mailboxes also yield no results!
    http://discussions.apple.com/thread.jspa?threadID=1395508
    Topic : 10.5.2 Mail.app search still not working (Entire Message)
    http://discussions.apple.com/thread.jspa?threadID=1389466

  • Title & Menu Buttons not working correctly on remote control/ set top player but work in preview.

    Title & Menu Buttons not working correctly on remote control/ set top player but work in encore preview. This only happens for a Blu ray project. When a user presses the menu button it should go to the previous menu they were on but it goes to the main menu. When they press the title button they should go to the main menu but it doesn't do anything. My DVD projects work as expected.I've tried creating a new "test" project with different footage and still get the same undesirable results.
    Overrides grayed out and set to "not set" for timelines and menus.Project settings and build are set to blu ray. Also I've noticed when I preview a Bluray project the preview window shows a red colored disc next to the Title button when viewing the timelines and green when playing the menus but not so for a DVD project it displays red if motion menus and or timelines are not rendered/encoded. I'm not using motion menus and all the media is encoded according to the project specs.
    I've searched this forum but couldn't find the answer. Any help or redirects to a solution would be appreciated. Working with CS5. Thanks.

    I found out on my Samsung Blu ray player the remote has a tools button on it that brings up audio, angle, chapter selection etc.and also title selection which is actually the menus and the timelines unfortunately. It's not as easy or direct as last menu selected but it's a workaround at least. I also plan on using a pop up menu. I'll let you know.

  • 10.9.2 Mail not working correctly

    I'm the only person in the office to upgrade to 10.9.2 (thankfully!). Since then, Mail has not worked correctly. It is an IMAP account.
    When I click on an existing message in my inbox, instead of displaying instantly it takes 3-4 seconds. The screen scrolls light grey, dark grey, light grey, dark grey then the message. I can live with this but it's very annoying.
    But worse, I now cannot perform any mail searches to refer back to existing messages I have in any of my mailboxes. Search functions 'to, 'from' 'entire message', 'any' do not  work. Even if the message or sender is in the inbox, it can’t find it. This is serious as I'm constantly using this function.
    Many thanks if you can help.
    Simon

    My wife is having the exact same problem all of a sudden with gmail on her MacBook Air. Also running 10.9.2. Everything is running perfectly on the iPhone, but on the Mac, no new email is downloading and the inbox is not syncing.
    Hoping someone can help. Thanks!

  • Sleep not working correctly

    Since updating my Late 2010 iMac to Moutain Lion the sleep function does not work correctly. They system keep waking up for no reason. The monitor comes comes day or night. I cannot figure out a fix or work around. Any ideas?

    Please read this whole message before doing anything. This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it. Step 1 The purpose of this step is to determine whether the problem is localized to your user account. Enable guest logins* and log in as Guest. For instructions, launch the System Preferences application, select Help from the menu bar, and enter “Set up guest users” (without the quotes) in the search box. Don't use the Safari-only “Guest User” login created by “Find My Mac.” While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin. Test while logged in as Guest. Same problem(s)? After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it. *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing. Step 2 The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login. Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode* and log in to the account with the problem. The instructions provided by Apple are as follows: 
    Shut down your computer, wait 30 seconds, and then hold down the shift key while pressing the power button.
    When you see the gray Apple logo, release the shift key.
    If you are prompted to log in, type your password, and then hold down the shift key again as you click Log in.
     Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs. The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. *Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t boot in safe mode. Test while in safe mode. Same problem(s)? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

  • Email pushing not working correctly for office email - 3 seperate devices/carriers

    We switched email hosts several months ago and since our email pushing has not worked correctly. Our host/IT guy has been very unwilling to help me through this (I get the pleasure of being the in-house IT source)
    I personally am on AT&T have no problems with the other 3 emails I have set up on my blackberry. However I receive my work account one time a day at roughly 6:15. Another user is on Alltel and he receives spotty emails throughout the day, but his gmail account comes through instantly. The third user is on nextel and he receives his 2-3 times per day.
    I began to think this was an email host issue since the three of us are all on different carriers, until I found out a fourth user, also on nextel, receives his emails fine.
    Users 1-3 are on Outlook 07 on various versions of the Curve. We have all our messages to stay on the server.
    User 4 is on the older nextel blackberry push to talk, and is not on outlook. 
    We do not have an exchange server. Our emails were all set up through our devices.
    Any suggestions? The answers I have received through our carriers is to make sure that our messages are set to be left on the server. Everyone else at the office has given up - but for me this is the quest for the Holy Grail.......I'm determined find the answer!
    Thank you in advance for any suggestions.
    Caitlin Talbot 

    Potential solution for windows for a side-by-side install. This works for me.
    To setup a firefox install side by side so that links from external programs (like email) can open (so you don't get a "Firefox is already running but is not responding" message) do the following.
    The solution entails the use of the -no-remote switch. Don't use it for the default browser. Use it for the non default browser.
    I'll use firefox 3.6 and firefox 4.0 as examples but this should work for future versions.
    + Install firefox 3.6 and Firefox 4.0 in different directories. Eg.
    C:\Program Files\Mozilla Firefox\firefox.exe
    C:\Program Files\Mozilla Firefox 4\firefox.exe
    + Open profile manager. Start > Run : firefox.exe -ProfileManager
    + In profile manager create Two Profiles.
    firefox3.6
    firefox4
    + In profile manager select firefox 4 as your default (assuming you want to default to the latest) and tick "Don't ask at startup"
    + Create two windows shortcuts.
    * General: Mozilla Firefox 4 (default). Shortcut > Target: "C:\Program Files\Mozilla Firefox 4\firefox.exe". Shortcut > Start In: "C:\Program Files\Mozilla Firefox 4"
    * General: Mozilla Firefox 3.6. Shortcut > Target: "C:\Program Files\Mozilla Firefox\firefox.exe" -p firefox3.6 -no-remote. Shortcut > Start In: "C:\Program Files\Mozilla Firefox"
    That's it. Links from external programs should now open in your default browser.
    Further details see. [http://kb.mozillazine.org/Opening_a_new_instance_of_your_Mozilla_application_with_another_profile Opening a new instance of your Mozilla application with another profile]

  • Search not working on Task Description

    Hi,
    I am facing a strange scenario with search not working on Task Description for a particular task item. This task item has around 18 versions of itself within it.
    I tried replicating the same scenario in our Test environment with following changes in the task item description:
    1. Copied the task list over to Test environment.
    2. Deleted all the versions of this task and put a single line description as.
    3. Initiated full crawl and search results with task description were
    coming up fine.
    4. Made few more versions : 5 Versions and again initiated full craw. Search results are fine.
    5. Made few more versions this time and again a FULL crawl, but now NO results with this task description.
    So, my question here is that is there any limit by MS for multiline text limit or version limit which prevents the task description from coming up in search results. 
    This task description as multiple line text with links to other lists/libraries and user names who created the versions in this task item. We are not using FAST search.

    I found the answer elsewhere on the forum:
    Somehow the main drive was added to the privacy list in Spotlight. Search is working fine now that I've removed it.

  • Archive folder missing from Mail & search not working

    I've been having trouble getting the Archive mailbox to appear in Mail. What's worse, often the search function is broken, and Mail doesn't turn up any search results. I've found some ways to get the Archive folder to reappear, but these only seem to help temporarily. For instance, clicking on the gear at the bottom left and selecting "Get Account Info" then selecting the Archive folder causes it to reappear, but this is only temporary and it disappears after another restart or sometimes after an hour or two. The search not working is the worst, as it sometimes is working and sometimes isn't. I don't have any idea what's causing this, but I am at my wit's end because I NEED Mail to be firing on all cylinders.

    Hello, and welcome to the Discussions.
    What are your selections in Mail Preferences/Accounts/Advanced for this Gmail account, if using IMAP, regarding keeping message for Offline use? The Mail search can only access the list of messages to search Subject, From, etc, but not the entire message unless copies of all messages are being kept on the computer. This would be true for any IMAP account, btw.
    More info, please.
    Ernie

  • Share point in server admin not working correctly... I think

    I suspect that the share point in server admin is not working correctly. In workgroup manager when I click on a user and then click on the "home" tab, under the full path field I see a file path of:
    afp://server.mydomain.com/Users
    However if I go to Server Admin -> AFP -> Share Points then click on the Users share and then click on the share point tab below, enable auto mount is disabled. How can this be possible? I thought for a directory to show up in home in workgroup manager it had to be set as an auto mount. Has something possibly corrupted? And what?

    Here's a bit more information about our setup and our experiences with Apple's CUPS implementation:
    On the server, all printer queues are set up with only lpr and ipp sharing enabled with the PPD setting for each printer set to Generic Postscript. We found that setting the PPD to the printer specific one on the server caused problems when clients tried to use printer specific options, like paper tray selection, etc.. The selection would be undone, apparently because the driver on the server would override the previous settings. Using Generic Postscript allows the client PPD settings to go through unmodified. Our printers are general a mix of HP LaserJets and some Sharp Copiers.
    All clients use lpd to the server queues with the printers' actual PPDs configured. Using ipp is superior in that printer feedback (jams, out of toner, etc) makes it back to the clients, but ipp only works when the client, the server, and the printer are on the same network. If the ipp client is not on the same network, the client spooler immediately goes into a paused state and the print job is stuck on the client.
    Using lpd to the server queues works reliably, but there is no feedback to the client. Jobs disappear from the client queue and go to the server, appearing to the user as a successful print. If the printer is down, there's nothing they can see or do about it.

Maybe you are looking for

  • How can I change the iCloud account associated with my iphone

    I changed my e-mail address a few months ago including changing my Apple ID to reflect my new e-mail. For some reason, my iphone and my ipad are both stuck with the iCloud username of my old e-mail address. When I try to delete these accounts like ot

  • MATERIALIZED VIEW BECOMES INVALID AFTER REFRESH

    Hello All, I have wierd problem , In my enviroinment we have a MATERIALIZED VIEW ,which is refreshed by a sheduled DBMS_SNAPSHOT.REFRESH Job post the refresh it becomes invalid and every time we have to compile it manually ,Could anybody help with a

  • Unable to delete update rule

    Hello All,          When iam deleting an update rule it is not getting deleted and iam getting message saying underlying infosource does not exists .The underlying infosource is deleted long before any way how come deleting update rule depends on inf

  • Is there a fix for the touchpad right click???

    It is probably an intern engineering failure but the touchpad on my brand new notebook is complete junk. I disabled every possible feature, uninstalled all the HP bloatware and STILL I have to click a gazzilion times in the far right corner of the to

  • Imac won't start unless I unplug it

    I've had my imac for about a year and a half, and ever since I got it, when I shut it down, I have to unplug the cord, wait approx. 30 sec, then replug it before it would turn on. I avoid this by always putting my computer to sleep. When I restart, i