Get Office365 Mailbox Settings using MS Graph API and PowerShell

%3CLINGO-SUB%20id%3D%22lingo-sub-777018%22%20slang%3D%22en-US%22%3EGet%20Office365%20Mailbox%20Settings%20using%20MS%20Graph%20API%20and%20PowerShell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-777018%22%20slang%3D%22en-US%22%3EFor%20Office%20365%20%2F%20Exchange%20Online%20Admins%2C%20if%20you've%20ever%20experienced%20timed-out%20or%20broken%20PowerShell%20implicit%20remoting%20sessions%20when%20extracting%20information%20for%20a%20large%20number%20of%20users%2C%20this%20script%20may%20be%20of%20interest%20to%20you.%3CBR%20%2F%3E%3CBR%20%2F%3EThis%20function%20utilizes%20the%20MS%20Graph%20API%20calls%20to%20query%20Mailbox%20Settings%20of%20ALL%20or%20a%20selected%20number%20of%20users%20and%20returns%20the%20result%20as%20an%20object%20which%20can%20then%20be%20filtered%20and%20exported%20(CSV%2C%20JSON%2C%20XML%2C%20TEXT)%20to%20a%20file%20format%20of%20your%20choice.%3CBR%20%2F%3E%3CBR%20%2F%3EFor%20long-running%20operations%2C%20this%20script%20also%20automatically%20renews%20the%20API%20access%20token%20every%2058%20minutes%20while%20running%20to%20ensure%20that%20authentication%20is%20always%20current%20and%20the%20script%20is%20not%20interrupted.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Flazyexchangeadmin.com%2Fget-office365-mailbox-settings-using-ms-graph-api-and-powershell%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Flazyexchangeadmin.com%2Fget-office365-mailbox-settings-using-ms-graph-api-and-powershell%2F%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-777018%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Active%20Directory%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EWindows%20PowerShell%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Occasional 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