0 votes

Happy Friday,

Is there a built-in to get a users mailbox size (O365 mailbox) and use it as a variable in a powershell script?

I know I can use Connect-ExchangeOnline, but our service account is MFA enabled so its no way to automate the login.

by (180 points)

1 Answer

0 votes
by (304k points)

Hello,

Is there a built-in to get a users mailbox size (O365 mailbox) and use it as a variable in a powershell script?

The following script from our repository will be helpful: https://www.adaxes.com/script-repository/save-mailbox-size-to-active-directory-attribute-s454.htm.

I know I can use Connect-ExchangeOnline, but our service account is MFA enabled so its no way to automate the login.

Using Connect-ExchangeOnline and Disconnect-ExchangeOnline is prohibited in Adaxes scripts. For an example on how to connect to Exchange Online in the scripts, see https://www.adaxes.com/script-repository/connect-to-exchange-with-powershell-s506.htm.

Related questions

0 votes
1 answer

The following script in the repository (https://www.adaxes.com/script-repository/check-mailbox-size-s450.htm) is throwing an error for us today. We are on version 3.17. ... 49GB' returns true. You cannot call a method on a null-valued expression. Please advise

asked 5 days ago by msheppard (840 points)
0 votes
1 answer

I want to be able to create a custom action that allows, via the web interface, a user to increase the size of his/her own mailbox by say 10% or 20%. What would be the best way to go about this?

asked Jul 15, 2024 by dominik.stawny (280 points)
0 votes
1 answer

Hi, is there a chance to modify the Mailbox Size Limits report so that it also shows the current Mailbox Size and the Limit? Regards Ingemar

asked Jun 4, 2013 by ijacob (960 points)
0 votes
1 answer

Hello, is there a way to shrink the size of the local DB3 file? We have modified the number of days for log retention but would like the DB file to be reduced as well. Second question, why does it load the file into memory before starting the service? Cheers

asked Sep 17, 2018 by jheisley (590 points)
0 votes
1 answer

We're in the process of setting up self service and the big complaint we are receiving is that the fonts are very small. Is there a CSS file, or configuration setting we can change to make the font larger on the self service site? Thanks!

asked Jun 26, 2017 by spencerp (120 points)
3,731 questions
3,409 answers
8,625 comments
550,199 users