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
2
u/ITGuyThrow07 Feb 17 '26
Azure is the entire suite of Microsoft cloud products. The ID part is a very small part and giving a different name is smart and less confusing.