How to Upgrade Office 365 PowerShell Scripts to Use the Graph API

%3CLINGO-SUB%20id%3D%22lingo-sub-2586165%22%20slang%3D%22en-US%22%3EHow%20to%20Upgrade%20Office%20365%20PowerShell%20Scripts%20to%20Use%20the%20Graph%20API%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2586165%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMany%20PowerShell%20scripts%20which%20access%20Office%20365%20data%20could%20do%20with%20a%20speed%20boost.%20Replacing%20cmdlets%20with%20Microsoft%20Graph%20API%20calls%20is%20one%20way%20to%20get%20extra%20speed.%20In%20this%20article%2C%20we%20take%20a%20PowerShell%20script%20to%20report%20the%20memberships%20users%20have%20of%20Microsoft%20365%20groups%20and%20replace%20some%20important%20cmdlets%20with%20Graph%20API%20calls.%20The%20result%20is%20a%20big%20speed%20increase.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Foffice365itpros.com%2F2021%2F07%2F26%2Fhow-upgrade-powershell-scripts-graph-api%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Foffice365itpros.com%2F2021%2F07%2F26%2Fhow-upgrade-powershell-scripts-graph-api%2F%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2586165%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
MVP

 

Many PowerShell scripts which access Office 365 data could do with a speed boost. Replacing cmdlets with Microsoft Graph API calls is one way to get extra speed. In this article, we take a PowerShell script to report the memberships users have of Microsoft 365 groups and replace some important cmdlets with Graph API calls. The result is a big speed increase.

https://office365itpros.com/2021/07/26/how-upgrade-powershell-scripts-graph-api/

0 Replies