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 moreWe 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.
Related posts
Microsoft 365 Copilot: Suggestions to continue in another Copilot experience
Microsoft 365 Copilot Chat will suggest switching to a better-fit Copilot mode (e.g., Cowork) after a prompt, maintaining conversation context...
Changes to Word, Excel, and PowerPoint agents in Microsoft Copilot
Microsoft 365 Copilot will replace standalone Word, Excel, and PowerPoint agents with integrated document creation and editing in Copilot Chat...
Increasing user exception limit to 10,000 for Standard-Deferred release preferences
The user exception limit for Standard-Deferred release preferences is increasing from 100 to 10,000 users per tenant to support larger pilot g...
Limits in Copilot Chat
Microsoft is implementing fair use limits on Copilot Chat features for users without a Microsoft 365 Copilot license, starting November 9. Lim...
Power Platform – Newer GPT models replace Anthropic, Grok, and earlier GPT models
We are updating the models available in prompts in Copilot Studio, Power Automate and Power Apps to bring newer OpenAI GPT models to the Basic...
Microsoft 365 Copilot: Conversation orchestration expands routing and overflow capabilities
Microsoft 365 Copilot enhances Dynamics 365 Contact Center with conversation orchestration, enabling dynamic priority escalation, overflow han...
Microsoft Teams: What’s happening across your organization in Activity notifications
Microsoft Teams is adding a “What’s happening across your organization” section in the Activity feed to highlight relevant p...
Microsoft Teams: Facilitator Protection skill helps identify suspected social-engineering attempts
Microsoft Teams’ Facilitator Protection skill uses AI to detect suspected social-engineering attempts in meetings with external particip...
Microsoft 365 Copilot: New accounting capabilities in Excel and Cowork
Microsoft 365 Copilot introduces new accounting features in Excel and Cowork for finance professionals to reconcile accounts, prepare journal ...
Microsoft Entra ID: Microsoft-provided SMS and voice authentication to retire for self-service password reset (SSPR)
Microsoft Entra ID will retire Microsoft-provided SMS and voice authentication for self-service password reset (SSPR) starting February 2027, ...