The -Credential parameter is leaving Exchange Online PowerShell: what an SME does about stored passwords
In Exchange Online PowerShell versions released from December 2026 on, the -Credential parameter is removed. Scripts that sign in with a stored username and password keep working on older versions until someone updates the module.
Photo: Bernd Dittrich · on Unsplash
Microsoft is removing the -Credential parameter from Exchange Online PowerShell module versions released from December 2026 on. The announcement is on the Exchange Team blog, updated on 16 July 2026. The same post points to message MC1248389 in the account’s message center. The parameter signs in with a username and password that are already stored. It uses the ROPC flow, which cannot meet MFA or Conditional Access. The removal applies to Connect-ExchangeOnline and to Connect-IppsSession.
For the owner or manager of a small or mid-sized business in Brazil or Latin America, without a large IT team, the effect shows up in a job the provider left running. A report. Creating a mailbox or a user. A backup. The script that runs when someone is hired. The job keeps going while the computer uses an older module version. It stops when someone updates the module to a version released in December 2026 or later. Microsoft also describes a later, server-side change that cuts off this sign-in on any version. No date for that change has been published.
The deeper issue is the stored admin password. That sign-in does not go through modern authentication and does not ask for MFA.
PowerShell, in one line, is the command line IT staff use to repeat tasks in Microsoft 365. A script is that list of commands, saved so it can run on its own, often overnight. -Credential is the piece of the command that hands over the stored username and password.
In this article, “the company’s account” is what Microsoft calls a tenant. MFA, multi-factor authentication, is the second step beyond the password. Modern authentication is the sign-in that makes room for that second step and for the account’s rules. Conditional Access is the rule that can require MFA, a known device, or an allowed network. ROPC, Resource Owner Password Credentials, is the flow in which the script sends the username and password directly, without that screen.
This article does not describe a CGT client. The facts come from the Exchange Team blog, from message MC1540345 on the admin API permissions, and from the 25 November 2026 round-up of December changes. The round-up dates its facts to 24 November 2026.
What leaves Exchange Online PowerShell
-Credential is the parameter a script uses to connect to Exchange Online with a stored username and password. The blog says the parameter relies on the ROPC flow. That flow does not support MFA. It therefore cannot meet the MFA requirement Microsoft is extending across its cloud services, or Conditional Access.
The library Microsoft uses for sign-in, MSAL, deprecated ROPC starting with version 4.74.0. The blog cites that library deprecation as part of the same shift.
The everyday command is Connect-ExchangeOnline. The same cut applies to Connect-IppsSession, the command that opens the compliance session. A note on the blog dated 17 February 2026 records that the change covers both.
The blog asks customers to move off -Credential now, and not to wait for December.
How long a stored password still signs in
The text updated on 16 July 2026 splits the timeline into three moments. The July date came from customer feedback: removal of the parameter moved to module versions released in December 2026 or later. The blog asks readers to see message MC1248389 in the account.
Modules already released. The parameter still works today. It keeps working in every module released up to the start of December 2026.
New versions, from December 2026 on. Those Exchange Online PowerShell module versions no longer include -Credential. A script that depends on it stops when someone installs one of those versions. The Digital Matters round-up reads the same timeline from the blog: an existing script keeps working until the module is updated.
A later server-side change, with no date. On the blog page, Nino Bilic of Microsoft replies on 12 February 2026 that there are two layers. The first is the module: a new version does not include the parameter, and an older version still accepts -Credential. The second is the service. When the ROPC flow is turned off on the server, the parameter stops on any installed version. On 15 February 2026, Vivek, also of Microsoft, writes that the date of that server-side change was not yet decided. The July update moves the module timeline. It does not publish a date for the server-side shutdown.
Staying on the old version buys time. It is not the plan. The blog treats leaving -Credential as something to do now, on both connection commands.
Modern authentication instead of a stored password
The blog names three paths, depending on who signs in.
A person at the screen. Interactive sign-in, with modern authentication and MFA. The post describes this path as the secure sign-in for human administrators, and says it supports MFA and Conditional Access. It fits someone who opens Exchange Online PowerShell at the moment they need it. It does not fit a job that runs on its own at 3 a.m.
Automation outside Azure. App-only authentication, with a certificate. The app is registered to act without a person signed in, and the proof of identity is a certificate, not a password. On 18 March 2026, the blog removed secret-based registration from that recommendation, because a secret is not the recommended path. Swapping the stored password for another stored secret is not what the post asks for.
Automation inside Azure services. Managed identity. The blog points to this path for Azure Functions, Automation Accounts, and cloud-native tasks, and says it eliminates secrets entirely.
In the same February exchange, Microsoft says compliance cmdlets that do not work in app-only mode will not be supported in that mode, because they are not meant for unattended scripts. If a command opened by Connect-IppsSession is in that group, the provider needs to say so in writing. Keeping the stored password does not become the replacement. The blog asks that gaps in the new paths be commented on the post itself.
Admin API permissions, since 1 December
A second December change sits on another door. Message MC1540345, published on 5 November 2026, updates the permissions for Exchange Online Admin API v2.0, the admin API for Exchange Online. The API addresses stay. So do the version and the operations. What changes is the permission used to reach them.
Two older permissions go out of use:
Exchange.ManageV2, for delegated access, where the app acts for a signed-in person, is replaced byExchange.AdminAPI.Manage.Exchange.ManageAsAppV2, for app-only access, with no person at the screen, is replaced byExchange.AdminAPI.ManageAsApp.
Worldwide, the message sets this schedule: the new permissions are available on 1 November 2026, migration was to be complete by 30 November 2026, and the existing permissions are deprecated on 1 December 2026. In the GCC, GCC High, and DoD government clouds, rollout begins in November 2026 and the existing permissions are deprecated on 1 January 2027. For an SME in the region, the worldwide date is the one that applies.
An application that, after that date, relies only on the retired permissions can no longer access the API. The message says an administrator grants consent to the new permissions, that existing Exchange RBAC roles still apply, and that a test with the new permissions comes before the old ones are removed. An organization that uses neither of the old permissions has no required action in that message. The same message says to check third-party applications with the provider that supplies them.
A password stored in PowerShell and an old permission on the API are different doors. Both close an access path that skipped modern authentication. Both call for a list, not a guess.
What shows up in the working day
The file and the mailbox stay in Microsoft 365. What can stop is the automatic job the provider built on -Credential.
Three effects fit the week of a small company.
The report does not arrive. The sheet someone read each morning stops appearing. Nobody announced a product change. Someone updated the module, or the job failed, and the notice stayed in the mailbox of the person who administers the script.
Hiring stops halfway. The script that created the mailbox, the user, or both does not finish. The new person arrives and the company email does not exist yet. The shortcut that day is to create the mailbox by hand and move on. The broken job is still broken at the next hire.
The scheduled copy or export does not run. A backup, an export, or a cleanup that depended on that sign-in stops happening. The company finds out when it needs the file and the file is not there.
None of this is a named case in this article. It is what a scheduled job produces when its sign-in is no longer accepted and nobody agreed who looks at the error.
The larger risk was already there before December. An admin password inside a script, a scheduled task, or a configuration file never passes MFA. Someone who obtains that password signs in with it, without the second step.
What to ask the provider
The conversation with the IT provider, including when that provider is an MSP, the outside firm that runs the environment, fits on a written list. Five questions cover the core. The admin password does not get sent in a message to “unblock” the script.
-
Which scripts use
-Credentialor a stored password? The list includes Exchange Online and the compliance session, scheduled tasks, servers, and the computer of the person who administers them. Each item names the script, where it runs, and which account signs in. -
Which apps still use the old API permissions?
Exchange.ManageV2andExchange.ManageAsAppV2. The answer separates a custom app, a third-party app, and an app that already hasExchange.AdminAPI.ManageorExchange.AdminAPI.ManageAsApp, with admin consent. -
What is the migration plan? Outside Azure, a certificate on the app. Inside Azure, a managed identity. Interactive sign-in with MFA for a person at the screen. The plan says what happens to a compliance command that has no app-only path.
-
Does the test happen before the module is updated? A new version, from December 2026 on, is when the parameter disappears. Updating first and finding out later reverses the order. The test uses a copy of the job, not the job the company expects in the morning.
-
Who is told if the job fails? The name of a person at the company and a person at the provider, and the channel. An error that exists only on the server screen does not reach the desk of the person who runs the SME.
With that answer, the company does four things. It inventories the service accounts, the accounts whose password is saved in a script or a task. It removes the admin password from those places. It requires MFA for anyone who signs in as a person. It reviews the app registrations in Microsoft Entra, the directory where those apps are authorized, and checks the new API permissions when an app administers Exchange.
Checklist
- A written list of scripts and scheduled tasks that connect to Exchange Online or the compliance session.
- Service accounts identified, with the place the password is stored.
- The admin password removed from the script, the scheduler, and configuration files.
- MFA required for a person’s sign-in, with modern authentication.
- App registrations in Entra reviewed. Old API permissions mapped to
Exchange.AdminAPI.ManageorExchange.AdminAPI.ManageAsApp, with consent and a test before the old ones are removed. - The new path chosen: a certificate outside Azure, a managed identity inside Azure, interactive sign-in for people.
- A test done before the module is updated in the environment the company uses.
- A name for who receives the alert when the job fails.
Frequently asked questions
What is the -Credential parameter in Exchange Online PowerShell?
It is the parameter on Connect-ExchangeOnline and Connect-IppsSession that sends a username and a password already stored. The Exchange Team blog says it uses the ROPC flow and therefore cannot meet MFA or Conditional Access.
Do scripts stop on 1 December 2026?
The blog does not mark 1 December as the day every script stops. The parameter remains in modules released up to the start of December 2026. It leaves module versions released from December 2026 on. A script on an older version keeps working until someone updates the module. A separate server-side change will cut the flow off on any version. Microsoft’s reply of 15 February 2026 says that date was not yet decided, and the July text does not publish it.
Why can’t a stored password satisfy MFA?
Because the ROPC flow hands over the username and password directly, without the modern authentication screen. The blog says that flow cannot meet MFA or Conditional Access. MSAL, Microsoft’s sign-in library, deprecated ROPC starting with version 4.74.0.
What replaces it for an SME’s automation?
The blog names three paths. A person at the screen: interactive sign-in with modern authentication and MFA. Automation outside Azure: an app with a certificate. Automation inside Azure: managed identity, which eliminates secrets. On 18 March 2026 the blog stopped recommending secret-based registration for the app.
Does the change apply to Connect-IppsSession?
Yes. The blog says removal of -Credential applies to Connect-ExchangeOnline and to Connect-IppsSession. A note dated 17 February 2026 records both commands.
Does staying on the old module version fix it?
It buys time. An older version still accepts the parameter, as the 12 February 2026 reply describes. When ROPC is turned off on the server, the parameter stops on any version. That server-side date is not published. The blog asks for the migration now.
What changed in the Exchange admin API in December?
Message MC1540345, from 5 November 2026, replaces the permissions on Exchange Online Admin API v2.0. Exchange.ManageV2 becomes Exchange.AdminAPI.Manage. Exchange.ManageAsAppV2 becomes Exchange.AdminAPI.ManageAsApp. Worldwide, the old permissions are deprecated on 1 December 2026. An app that relies only on them can no longer access the API. The API addresses, version, and operations stay.
Does a company that does not use those permissions have to act?
The message says no, if the account uses neither Exchange.ManageV2 nor Exchange.ManageAsAppV2. The same message says to identify the applications and to check third-party ones with the provider. The question to the provider exists because the person who runs an SME usually does not see that list.
Does this describe a CGT client?
No. There is no case, client, or CGT result in this article.
Related reading
An app with broad access to the account is another door, on another date. On the blog, the article on the ConnectWise backup app attack (formerly SkyKick) covers an application credential used to enter Microsoft 365 accounts without passing MFA, between 15 and 17 October 2026. This article is about -Credential in Exchange Online PowerShell and about the admin API permissions deprecated in December.
How CGT can help
CGT supports small and mid-sized businesses on Microsoft 365, within the scope agreed with each client: review the account and the automations, list scripts that sign in with a stored password, see which apps still use the old admin API permissions, and line up the move to a certificate or a managed identity. Human support is Monday to Friday, 8:00 to 18:00, São Paulo time.
Want a review of your company’s account and automations? Meet CGT and talk to us.
Sources: Exchange Team blog, updated 16 July 2026, message MC1540345, and the 25 November 2026 round-up of the December changes.


