Comments on: Upgrade Your Exchange Online Scripts to Use the Get-EXOMailbox Cmdlet https://practical365.com/move-your-exchange-online-scripts-to-use-get-exomailbox/ Practical Office 365 News, Tips, and Tutorials Tue, 22 Nov 2022 14:05:13 +0000 hourly 1 https://wordpress.org/?v=6.3.2 By: Tony Razo https://practical365.com/move-your-exchange-online-scripts-to-use-get-exomailbox/#comment-237960 Fri, 11 Mar 2022 00:53:08 +0000 https://practical365.com/?p=51878#comment-237960 Hello ! I am having a hard time getting the Get-EXOMailboxFolderStatistics to export the user’s userprincipalname.

]]>
By: Tony Redmond https://practical365.com/move-your-exchange-online-scripts-to-use-get-exomailbox/#comment-237446 Tue, 04 Jan 2022 17:07:22 +0000 https://practical365.com/?p=51878#comment-237446 In reply to Keith.

First, if you hit errors with cmdlets, please make sure that you file a formal support incident with Microsoft. It’s the only way that Microsoft will pay any real attention (i.e., assign an engineer to find out why the problem happened).

Second, with respect to this problem, I think I would try and use the strengths of the REST cmdlet in terms of fetching large numbers of objects fast and reliably while avoiding any lurking rocks which you might have discovered. In this instance, it could be that the pipeline is not being read correctly. So I would do:

[array]$Mbx = Get-ExoMailbox -ResultSize unlimited
ForEach ($M in $Mbx) {
$Perms = Get-ExoMailboxPermission…
If $Perms add to set of rights…
}

]]>
By: Keith https://practical365.com/move-your-exchange-online-scripts-to-use-get-exomailbox/#comment-237444 Tue, 04 Jan 2022 16:21:54 +0000 https://practical365.com/?p=51878#comment-237444 Hi Tony,

Thanks for the post. I would really like to move away from the old cmdlets to the new, but the problem I seem to have with the REST based cmdlets is when using pipelines. They just straight up fail without giving me a meaningful error. Here’s an example that I regularly need to run… Find all the users in the tenant who have full access permissions to a mailbox. With the old cmdlet, this is easy…

Get-Mailbox -ResultSize Unlimited | Get-MailboxPermission -User “John.Doe@acmecorp.com” | Select Identity,User,AccessRights

With the EXO cmdlets this gives a generic error

Get-EXOMailbox -ResultSize unlimited | Get-EXOMailboxpermission -User “John.Doe@acmecorp.com” | Select Identity,User,AccessRights

Get-EXOMailboxpermission : An error occurred while processing this request..

Many of us simply don’t have or are not given the time to trawl around google posts figuring out how to make the REST cmdlets work when the PS ones already work fine.

Any suggestions or any good resources that you know of that might reduce the pain?

Thanks

]]>
By: Tony Redmond https://practical365.com/move-your-exchange-online-scripts-to-use-get-exomailbox/#comment-235301 Wed, 09 Jun 2021 19:53:26 +0000 https://practical365.com/?p=51878#comment-235301 In reply to Dan.

After 14 years of Get-Mailbox, isn’t it time to move on? (rhetorical)

]]>
By: Dan https://practical365.com/move-your-exchange-online-scripts-to-use-get-exomailbox/#comment-235300 Wed, 09 Jun 2021 18:58:53 +0000 https://practical365.com/?p=51878#comment-235300 Old habits die hard though Tony, it’ll be like losing a family member of I get rid of Get-Mailbox ?? 😉

Great info as always!

]]>
By: Mike Bakeler https://practical365.com/move-your-exchange-online-scripts-to-use-get-exomailbox/#comment-235050 Thu, 27 May 2021 22:42:43 +0000 https://practical365.com/?p=51878#comment-235050 I appreciate the information within your article.

Thank you.

]]>