# Odd PS behavior on new console server(s)

**URL:** <https://forums.powershell.org/t/odd-ps-behavior-on-new-console-server-s/23321>\
**Category:** PowerShell Help\
**Created:** [December 20, 2023, 5:35pm UTC](https://forums.powershell.org/t/odd-ps-behavior-on-new-console-server-s/23321 "2023-12-20T17:35:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![asif-india](https://avatars.discourse-cdn.com/v4/letter/a/9e8a1a/32.png) [@asif-india](https://forums.powershell.org/u/asif-india)\
**Post date:** [December 20, 2023, 5:35pm UTC](https://forums.powershell.org/t/odd-ps-behavior-on-new-console-server-s/23321/1 "2023-12-20T17:35:24Z")

</div>

I’ve using a query like this to search a mailbox for malicious emails that we get notified about… and it’s worked for years on the older servers.

**Get-mailbox [Recipientaddress](mailto:roy.bulleri@wellsfargo.com) | search-mailbox –searchquery { from:[sender address](mailto:janet.l.elliott@wellsfargo.com)} –targetmailbox MSGSearchMBXTest –TargetFolder 1-TRG-Remove\_onSndr –loglevel full**

Running it on newservers from an admin level EPS session it fails, as below

Warning: The search-Mailbix cmdlet returns up to 10000 results per MB if search query is specfied. To return more than 10000 results, use New-MailboxSearch cmdlet or the In-place eDiscovery & hold console in Exchange Admin Center

The input cannot be bound to any parameters for the command either because the command does not take pipeline input or the input properties do not match any of the parameters that take pipeline input

- CategoryInfo : invalidArgument: ( **MSGSearchMBXTest** ) [Search-Mailbox]

---

<div class="post-metadata">

**Author:** ![Austin\_H](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/austin_h/32/4523_2.png) [@Austin\_H](https://forums.powershell.org/u/Austin_H)\
**Post date:** [December 21, 2023, 7:42pm UTC](https://forums.powershell.org/t/odd-ps-behavior-on-new-console-server-s/23321/2 "2023-12-21T19:42:32Z")

</div>

Hi asif-india and welcome back to the forums.

Can you do a `Get-Help Get-MailBox` and `Get-Help New-MailboxSearch`? This will show what inputs and parameters are allowed on the cmdlets.

The public view will not know what these cmdlets do or how they operate so we need context of what they do.

---

<div class="post-metadata">

**Author:** ![psjamesp](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/psjamesp/32/959_2.png) [@psjamesp](https://forums.powershell.org/u/psjamesp)\
**Post date:** [December 22, 2023, 3:16pm UTC](https://forums.powershell.org/t/odd-ps-behavior-on-new-console-server-s/23321/3 "2023-12-22T15:16:27Z")

</div>

Hey @asif-india, the warning it gives indicates that there are more than 10,000 results to be displayed. I would either do more filtering (remember to filter as far left as possible) or sue the `New-MailBoxSearch` cmdlet

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:13pm UTC](https://forums.powershell.org/t/odd-ps-behavior-on-new-console-server-s/23321/4 "2024-05-16T20:13:39Z")

</div>

Closed on May 16, 2024, 8:13pm UTC


