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/bodobeers2 Feb 17 '26
True, I get it is not full parity, but from the start it was meant to be the cloud version of at least Active Directory Users and Computers, in some way. But at the root of it, providing some of the functionality of "Active Directory" into the cloud to push people to their new offerings (Back in BPOS days). Entra is just their marketing teams coming up with new "great name ideas" which they seem to spend more time on than building quality software :P