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
1
u/AppIdentityGuy Feb 17 '26
No it wasn't and I cannot tell how much confusion it caused in the market at all levels. I've had executives tell they won't sent their guys on Azure AD training because its just AD in the cloud. If it was why would ww need AADConnect or Entra Cloud Sync to translate the objects into Entra.
Entra is certainly a management framework and hence similar to ADDS in function but it's not just a cloud version of ADDS.
Flip this around. If you have domain controllers running as VMs in Azure you are not "cloud native
Please note I'm talking at a deep technical level but the differences are important