Get Office365 Mailbox Settings using MS Graph API and PowerShell

Copper Contributor
For Office 365 / Exchange Online Admins, if you've ever experienced timed-out or broken PowerShell implicit remoting sessions when extracting information for a large number of users, this script may be of interest to you.

This function utilizes the MS Graph API calls to query Mailbox Settings of ALL or a selected number of users and returns the result as an object which can then be filtered and exported (CSV, JSON, XML, TEXT) to a file format of your choice.

For long-running operations, this script also automatically renews the API access token every 58 minutes while running to ensure that authentication is always current and the script is not interrupted.

https://lazyexchangeadmin.com/get-office365-mailbox-settings-using-ms-graph-api-and-powershell/
0 Replies