Loading...

Retirement of -Credential parameter when connecting to Exchange Online PowerShell

Retirement of -Credential parameter when connecting to Exchange Online PowerShell

Microsoft will retire the -Credential parameter in Exchange Online PowerShell cmdlets starting July 2026, requiring organizations to migrate scripts to modern authentication methods with MFA or app-only/managed identity authentication to avoid disruptions. This enhances security by eliminating legacy authentication. Microsoft is retiring the -Credential parameter used when connecting to Exchange Online PowerShell. Starting with module versions released in July 2026 and later, the -Credential parameter will be removed from both Connect-ExchangeOnline and Connect-IppsSession cmdlets. Organizations using this parameter in automation scripts must migrate to a supported authentication method before that date. This change improves security by moving away from legacy authentication methods that do not support modern protections such as multifactor authentication (MFA). When this will happen: The -Credential parameter will be removed from Connect-ExchangeOnline and Connect-IppsSession cmdlets in Exchange Online PowerShell module versions released beginning July 2026. A separate server-side retirement of the underlying authentication flow is planned for a later date and will be communicated in advance. How this affects your organization: Who is affected: Microsoft 365 administrators using Exchange Online or Security & Compliance PowerShell Organizations with automation scripts that use the -Credential parameter What will happen: If your organization uses the -Credential parameter in PowerShell scripts or automation workflows connecting to Exchange Online or Security & Compliance PowerShell, those scripts will break when you update to an Exchange Online PowerShell module version released beginning July 2026. No impact if your organization does not use the -Credential parameter What you can do to prepare: If you are using the -Credential parameter, begin migrating your scripts now. Do not wait until July 2026. Choose the appropriate alternative based on your scenario: Interactive admin access: Switch to modern authentication with MFA. Learn more: Connect to Exchange Online PowerShell. Automation outside Azure: Use app-only authentication (certificate-based or client secret). Learn more: App-only authentication for unattended scripts in Exchange Online PowerShell and Security & Compliance PowerShell. Automation within Azure: Use managed identity authentication (no secrets required). Learn more: Use Azure managed identities to connect to Exchange Online PowerShell. Review internal documentation and communicate changes to admins If you are not using the -Credential parameter, no […]

The post Retirement of -Credential parameter when connecting to Exchange Online PowerShell appeared first on M365 Admin.

Published on:

Learn more
Need help with this product?

We can help you with Retirement of -Credential parameter when connecting to Exchange Online PowerShell

If you want help implementing, troubleshooting, or improving this product, contact us and we’ll point you in the right direction.

M365 Admin
M365 Admin

by João Ferreira

Share post:

Related posts

Microsoft SharePoint Online: Classic publishing restrictions begin March 1, 2027

Starting March 1, 2027, SharePoint Online will block creation and activation of classic publishing sites and features, enforcing restrictions ...

10 hours ago

Microsoft Copilot (Microsoft 365): The more you use Copilot in Office the better it gets

Copilot in Word, Excel, PowerPoint, and Workspaces across Copilot App and OneNote will use memory to learn your work patterns and personalize ...

10 hours ago

Trigger quality evaluations when a support case is resolved

Quality evaluation plans can now run automatically when a support case is resolved. This helps organizations evaluate customer interactions at...

10 hours ago

Microsoft Teams: Set and manage meeting timers in Teams Rooms on Windows

Keep meetings on track with a shared countdown timer in Microsoft Teams Rooms on Windows. Start, pause, resume, or cancel a timer from the roo...

10 hours ago

Dynamics 365 Human Resources: Streamline the employee offboarding experience

Business value When an employee leaves, HR, managers, IT, facilities and payroll all have work to do, but the termination hasn’t been co...

10 hours ago

Dynamics 365 Customer Insights – Journeys: Stop tracking email opens without disabling other tracking

Choose whether to track email opens separately from other tracking in Dynamics 365 Customer Insights – Journeys. A dedicated consent pur...

19 hours ago

Dynamics 365 Contact Center: Trace conversation journeys end to end across your contact center

Journey Visualization brings live conversation data onto the map of your contact center configuration, so admins can see how conversations act...

19 hours ago

Microsoft Teams: Share reactions at events with up to 100,000 attendees

Stay more engaged and connected with the audience, even at events with up to 100,000 attendees. Teams now supports reactions in events at this...

19 hours ago

Dynamics 365 Sales: Customize how Recommended Actions are prioritized with custom instructions

Administrators can customize how the Recommended Actions agent prioritizes actions by configuring natural-language instructions for individual...

19 hours ago

Microsoft Teams: Improved device settings experience on Teams Rooms on Android

We’re enhancing the on-device admin settings experience for Teams Rooms on Android by improving information structure, organization and naviga...

19 hours ago

Newsletter

Get the latest Dynamics 365 and Power Platform content in your inbox

A curated digest of community blogs, product news, videos, and podcasts — delivered without the noise.

Weekly updates Unsubscribe anytime Fresh community picks
We use your email only for the newsletter and you can unsubscribe at any time.
By subscribing, you agree to the privacy policy.