The notice retiring the -Credential parameter from Exchange Online PowerShell carries two sentences worth reading together. The first: "The -Credential parameter will be removed from Connect-ExchangeOnline and Connect-IppsSession cmdlets in Exchange Online PowerShell module versions released beginning end of year 2026 (previously July)". The second, further down the same notice: "The -Credential parameter will only be removed when you upgrade to a module version released in December 2026 and later". December is Microsoft's date. Yours is your next module update, and the vendor writes that itself.
That changes who holds the clock. If you have a scheduled task connecting to Exchange Online with a username and a password —Monday's mailbox report, user provisioning, the export feeding a spreadsheet the board looks at— the day it stops working is not Microsoft's choice. It is the choice of whoever types Update-Module on that machine. It could be tomorrow, if someone updates that machine while fixing something else; or it could be two years away, because nobody touches it —and a machine nobody touches in two years has worse problems than this parameter—.
What the notice says, with its dates
The notice is MC1248389, "Retirement of -Credential parameter when connecting to Exchange Online PowerShell", filed as a major change with admin impact. Published on 10 March 2026 and last updated on 15 July, with a line worth quoting in full: "Updated July 15, 2026: We have updated the timeline. Thank you for your patience". In other words: this deadline has already moved once. It was July, and it ended up at the end of the year.
A note on method, because it affects how you read the rest: the Message Center is only visible from inside the tenant, so we quote the notice from the public mirrors that reproduce it, consulted on 5 December 2026. Everything else quoted here —parameters, requirements, limits— is in Microsoft Learn's public documentation, which anyone can open without credentials. If you only trust one of the two sources, trust the second: it is the one that governs when you build the alternative.
Nothing changes in your tenant yet. A package changes.
The removal travels inside the ExchangeOnlineManagement module, downloaded from the PowerShell Gallery. The numbers, read on 5 December 2026: the latest published stable version is 3.11.1, from 11 November 2026; before it, 3.10.1 from 24 July; 3.10.0 from 8 June; and 3.9.2 from 5 January. The package counter shows 74,377,012 cumulative downloads.
The mandatory caveat: downloads are not installations. That counter is inflated by CI pipelines, images rebuilt every night and reinstalls; and a freshly released version always has fewer downloads than one from six months ago, which says nothing about who is up to date. As an adoption metric it is useless. For one thing it is useful: that package sits on a very large number of machines, and on each of them the version is decided by whoever administers that machine.
The consequence is uncomfortable. The machine that has not run Update-Module since January is still on 3.9.2 and will keep connecting with -Credential when the version that drops it ships. The notice takes that as read: scripts keep working as long as you stay on a module from before that batch.
With one caveat the same notice makes, and it changes the long game: "A separate server-side retirement of the Credential parameter authentication flow is planned for a later date". What goes first is the parameter inside the module, and that clock is yours. What goes later is the authentication flow on the server side, and on that day the untouched 3.9.2 stops working too. No date has been published for that second phase. Pinning the version buys time; it does not buy the exit.
The script that survives is the one on the machine nobody maintains
And that machine holds a password. We are not making it up: we deduce it from a documented limitation. The Connect-ExchangeOnline reference says of the parameter, in plain words, "Don't use this parameter for accounts that use multi-factor authentication (MFA)". Read it backwards, which is how it reads in an audit: if that script has been running unattended for years, the account it uses has Exchange permissions and has no second factor. It has to, or it would not work.
The module does what it can with that password, and credit where it is due: "After the Connect-ExchangeOnline command is complete, the password key in the variable is emptied". It empties the variable in memory. It does not empty the .xml file it came from, nor the .ps1 where it is written, nor the task scheduler's credential store. The secret was never in the variable: it was wherever the variable was filled from.
We take this axis to a question we ask in steering meetings: who reviews the next change before it touches production? Here the breaking change is not Microsoft's. It is yours, it fits in thirteen characters, and it is usually made by someone fixing something else, on a Tuesday, on a machine with no twin to test on. Failure is inevitable; an outage is a design decision.
The three exits, and who each one is for
The notice proposes three routes. Ordered by how many people they actually serve, they look like this:
- Interactive access with modern authentication and MFA. It is the right answer for the person who connects by hand to look at a mailbox. It solves nothing at all for unattended work, which is what this article is about.
- Managed identity, which the notice sells with a hard-to-beat argument: "no secrets required". True, and it is the best option. But the
Connect-ExchangeOnlinedocumentation bounds where it exists, and the list ends there: Azure Automation runbooks, Azure virtual machines, virtual machine scale sets and Azure Functions. If your script runs as a scheduled task on a server of yours, in a container in your own rack or on somebody's laptop, that option does not exist for you. - App-only authentication with a certificate (CBA). The realistic exit for almost anyone with automation outside Azure. And it has a price, which is the part that does not fit in a three-paragraph notice.
What the third one actually costs
It is not swapping one parameter for another. It is creating a new identity in your directory, with its certificate and its upkeep. The requirements, as Microsoft Learn publishes them:
- An application registered in Microsoft Entra ID and, on top of it, the application permission matching the connection:
Office 365 Exchange Online > Exchange.ManageAsAppforConnect-ExchangeOnline, andMicrosoft Exchange Online Protection > Exchange.ManageAsAppforConnect-IPPSSession. If you use both, both permissions. With tenant-wide admin consent. - A minimum module version, which is not the one you have if the machine has sat still for years: 2.0.4 or later for Exchange Online PowerShell and 3.0.0 or later for Security & Compliance PowerShell. Irony included: to stop depending on updating the module, you must update the module.
- An X.509 certificate with an exportable private key. And here is where almost everyone trips the first time, verbatim from the documentation: "Cryptography: Next Generation (CNG) certificates aren't supported for app-only authentication with Exchange. CNG certificates are created by default in modern versions of Windows. You must use a certificate from a CSP key provider". Translated: the certificate Windows will create for you by default does not work, and the error it throws does not say so.
- A role. Either you assign it an Entra ID role, with the warning the page itself writes —"You can't customize or scope these roles"— or you build your own role group and put the service principal in it with
New-ServicePrincipalandAdd-RoleGroupMember. The second route is more work, and it is the one that keeps Monday's report from running as an Exchange administrator.
One more detail that decides where the script can run: "The CertificateThumbprint parameter is supported only in Microsoft Windows". If your automation lives in a Linux container, the thumbprint route is gone; what is left is passing the certificate object at run time. And if that app registration rings a bell, it is because the Exchange Online admin API permissions change asked for exactly the same kind of identity.
The Microsoft sentence worth reading twice
There is an obvious shortcut: drop the .pfx in a folder and feed it the certificate password from the script. The documentation covers it, explains it… and then writes this: "Using a ConvertTo-SecureString command to store the password of the certificate locally defeats the purpose of a secure connection method for automation scenarios. Using a Get-Credential command to prompt you for the password of the certificate securely isn't ideal for automation scenarios. In other words, there's really no automated and secure way to connect using a local certificate".
The vendor says it in its own documentation, and that is the warning to take home. If the migration ends up being a .pfx next to the .ps1 with the password two lines above, you have not removed the secret: you have changed its format, with extra steps. The two routes that do close the loop are the certificate installed in the machine store (used by thumbprint) or the certificate object fetched at run time from wherever it is kept —Learn itself gives a key vault such as Azure Key Vault as the example—.
You have swapped a password that never expired for a certificate that does
This is the part no migration guide mentions, and it is our reading. The command the documentation itself recommends for generating the self-signed certificate carries the expiry inside it:
$mycert = New-SelfSignedCertificate -DnsName "contoso.org" -CertStoreLocation "cert:\CurrentUser\My" -NotAfter (Get-Date).AddYears(1) -KeySpec KeyExchange
AddYears(1). One year. A service password, badly handled, lasts until someone decides to change it; a certificate ships with its date. And the day it expires, the job will not "fail" loudly: it will stop delivering. A report that does not arrive makes nowhere near the noise of a website down, which is why it can take weeks to notice. This is why we keep insisting on telemetry that warns on symptoms: that certificate's expiry has to live in the same place where you watch your domains, your web certificates and your backups. If it lives in the head of whoever created it, it is not being watched.
And there is a second effect worth saying out loud: what enters the directory is an identity that is not a person. It does not go through a second factor, nor through most of the access conditions designed for humans —we already covered what that looks like when someone signs in as your app and Entra ID asks for no MFA—. This is not an argument against the certificate, which beats the password. It is an argument for scoping its role and for knowing that identity exists.
What no parameter swap will migrate
This is where "an afternoon's work" becomes a small project, and the reason to look at it in December rather than March. App-only authentication does not work with every cmdlet. The documentation names four Microsoft 365 Groups cmdlets —New-UnifiedGroup, Remove-UnifiedGroup, Add-UnifiedGroupLinks and Remove-UnifiedGroupLinks— and offers an alternative that is not a parameter: "You can use Microsoft Graph to replace most of the functionality from those cmdlets". Note the most.
And with Purview eDiscovery it is blunter: "App-only authentication remains unsupported for Microsoft Purview eDiscovery cmdlets in Security & Compliance PowerShell", with a list including New-ComplianceSearch, Start-ComplianceSearch and New-CaseHoldPolicy. There is a documented workaround —module 3.10.1 or later plus the EnableSearchOnlySession switch— but the page stamps it first: "These measures don't change the configuration's unsupported status". If your compliance scripts go that way, the job is not a parameter swap: it is a rewrite against Graph, or accepting that part needs a person in front of it.
It is the same pattern we saw with the basic SMTP shutdown and its alternative: the retirement is announced as a change of authentication method, and in practice it is an inventory of what each automation does and who maintains it.
Five checks; four of them touch nothing
- Search for the parameter, not the script. A grep across repositories and script folders for
-Credential,Get-Credential,Import-ClixmlandConvertTo-SecureString. Whatever shows up next toConnect-ExchangeOnlineorConnect-IPPSSessionis your work list. Read-only. - Inventory the version, machine by machine, with
Get-InstalledModule ExchangeOnlineManagement -AllVersions. Next to it, write down who administers that machine and how often it is updated. That second column is what actually tells you how much time you have. Read-only. - List the cmdlets each script calls and cross them against the ones app-only authentication does not support. Anything that lands on that list is not a migration: it is a rewrite. Read-only.
- Look at the account, not the script. What roles it holds, how long since its password changed, whether it is excluded from any conditional access policy, and who created it. That account exists because it cannot have MFA; while it exists, it is an asset to watch. Read-only.
- The only one that touches anything: decide and write down who updates the module on that machine, when, and where it gets tested first. Pinning the version is legitimate as a stopgap, but the notice itself announces a server-side retirement with no date: the pinned version will expire on its own.
When this is not about you
If all your Exchange Online automation already runs in Azure Automation or Azure Functions with managed identity, this notice affects you not at all, and you have the best version of the arrangement. If nobody connects unattended and every connection is interactive with MFA, likewise: you were not using the parameter that is going away. And if your reports already come out of Microsoft Graph, this is a footnote. For everyone else —which, from what we see, is most SMBs with one server and three scheduled tasks— the question is not whether to migrate, but who does it and with what date written down.
What we are not claiming
- The notice places the removal in versions released from "end of year 2026" onwards and names December 2026 elsewhere, but it publishes no version number and no specific day. As of 5 December, the latest published stable is still 3.11.1, from 11 November. And of the second phase, the server-side one, all we know is that it has been announced: there is no date, and we are not borrowing one from anybody.
- The Gallery download counter does not measure installations or adoption. We cite it for scale, not as a statistic about who is up to date.
- The "that account has no second factor" line is our reading of a documented requirement of the parameter, not a claim about your tenant. Check it yourselves: it is item four on the list.
- We have not tested a module version without the parameter, because none exists publicly yet. When it ships, what counts is your inventory from item two.
Sources
Message Center advisory MC1248389, "Retirement of -Credential parameter when connecting to Exchange Online PowerShell" (published 10-03-2026, updated 15-07-2026), quoted from the public Message Center mirrors, consulted on 05-12-2026. Microsoft Learn: "App-only authentication in Exchange Online PowerShell and Security & Compliance PowerShell" (Exchange.ManageAsApp permissions, minimum versions, CSP versus CNG certificates, roles, unsupported cmdlets, eDiscovery) and the Connect-ExchangeOnline cmdlet reference (Credential, CertificateThumbprint, CertificatePassword and ManagedIdentity parameters). ExchangeOnlineManagement module versions and dates: PowerShell Gallery, consulted on 05-12-2026. The steering-committee question and the failure-versus-outage axis are everyWAN's own material. Cover photograph: "Dusty Computer Backside", by I G, CC BY 2.0, via Wikimedia Commons.
Do you know how many of your scripts carry a password inside?
At everyWAN we manage Microsoft 365 for companies with exactly this: three scheduled tasks nobody remembers writing and a service account with no second factor. We take the inventory, build the app identity with a scoped role, put the certificate expiry where it is actually watched, and write down who updates what. Without selling anybody's licences.
Talk to everyWAN