Microsoft is phasing out the use of Remote PowerShell for Exchange Online, and will block its use next year. Remote PowerShell for Exchange Online will get blocked starting on June 1, 2023, per a ...
The transition will occur in two steps: first, Microsoft will remove -Credential from new versions of the Exchange Online PowerShell module. Scripts using older module versions should continue to ...