r/PowerShell • u/KavyaJune • Feb 17 '26
Your existing Exchange Online PowerShell scripts might fail
Microsoft is removing support for the -Credential parameter in new versions of the Exchange Online PowerShell module released after June 2026.
The -Credential parameter relies on ROPC (legacy authentication), which does not support MFA or Conditional Access. Because of this, Microsoft is removing support for it in future module releases.
If you’re using:
Connect-ExchangeOnline -Credential $credespecially in unattended scripts, those will need to be updated.
Alternatives:
- Interactive sign-in
- App-only authentication (recommended for automation)
- Managed Identity (for Azure automation)
65
Upvotes
View all comments
Show parent comment
5
u/AppIdentityGuy Feb 17 '26
It was never a cloud version of ADDS. No OU structure, no GPOs, but no kerberos support,. It has a completely different management and admin structure. Now there is EntraID DS but that is a special case.
Entraid has always been cloud native. You can spin up a entire environment for a company that has no AD at all.