The_Exchange_Team Since we never got an answer to my question on the related blog post https://techcommunity.microsoft.com/t5/exchange-team-blog/reducing-memory-consumption-of-the-exchange-online-powershell-v3/ba-p/3970086 I thought this would be a good place to repost:
Why do we need to download the tmp module each time we run "Connect-ExchangeOnline"?
Other PS-modules from Microsoft like "Microsoft.Online.SharePoint.PowerShell", "Microsoft.Graph.Authentication" or "Az.Accounts" are installed to the local machine once. You can then connect to the services and run cmdlets according to your permission. This results in less network traffic and faster connection. When not executing "Disconnect-ExchangeOnline" you are left with the module in your user's localappdata\temp directory, which also uses system resources (disk space). Maybe the "ExchangeOnlineManagement" can also be set up like that?