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.

ago by (180 points)

1 Answer

0 votes
ago by (302k 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

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)
0 votes
1 answer

Hi Forum, Today :) i have 2 questions: 1. is it possible to disable the "Show indirect membership" option in the member of Section of the Webinterface? 2. We regularly ... it better to put this into a different database? Thanks a lot for your help. Cheers

asked May 21, 2015 by esoAdxAdmin (650 points)
3,685 questions
3,370 answers
8,521 comments
549,568 users