Closed EMarcais closed 3 years ago
Thanks. You must be working with a lot of groups... How many are you processing?
Not that much actually, I only deal with around 400 groups, but the VM and my own laptop are a tad slow ( it's what I assumed) and the EXO cmdlts always takes forever on my tenant I noticed. I have a strict archiving policy, when a lot of groups are archived if no user activity for 2 weeks either on the SharePoint Library or the chats.
OK, the change is accepted, so we shall close this issue and work on from this point.
I have a V5.2 under way which eliminates the need for many expensive cmdlet calls to fetch Teams compliance records. The latest run processed 199 groups in 219 seconds...
Thanks for all your explanations on all o365 apps and PowerShell possibilities with them. Learned a lot and trying to help you a bit. Access token are valid for 60 minutes so if the loop is taking longer than that this on line 239 will fail: $TeamDetails = Get-GraphData -AccessToken $Token -Uri $Uri
Solution I found was:
Not sure this will help but that resolved my issues... Hope I did not mess anything. I can try to submit a merge request.