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
Dynamics 365 Sales: Choose the data sources AI-powered Data Enrichment uses, including CRM notes
AI-powered Data Enrichment now lets admins choose which data sources the agent uses to enrich records. Outlook emails, Teams meetings, and the...
Microsoft Teams: Pro Management portal Analytics & Reports Design Refresh
We are refreshing the way we organize the Analytics & Reports area in the Pro Management portal to make it more user-friendly. Product Mic...
Copilot: Audio overviews on PDF Reteirement
Microsoft 365 Copilot mobile app’s Audio Overviews on PDFs, which create AI-generated podcast-style summaries for commercial users, will...
Public CDN is becoming optional during Brand Center setup
Brand Center setup will no longer require enabling Public CDN by default, allowing organizations to use branding governance without it. Public...
Microsoft 365 Copilot and Power Apps: Retirement of App Builder agent and vibe.powerapps.com
Microsoft is retiring the App Builder agent and vibe.powerapps.com by November 30, 2026, consolidating app creation into Copilot Cowork and Mi...
Outlook: Reply With a Template in Rules
New Outlook for Windows and Outlook on the web will let users create inbox rules that auto-reply with saved templates, automating routine resp...
Microsoft Purview Audit: AuditLogQuery API generally available and Search-UnifiedAuditLog retiring
The Microsoft Graph AuditLogQuery API will be generally available in October 2026, replacing the Search-UnifiedAuditLog PowerShell cmdlet, whi...
Dynamics 365 Sales – Information regarding the retirement of the Dynamics 365 Sales Insights standalone add-on
Starting November 1, 2026, Dynamics 365 Sales Insights as a standalone add-on will have reached end of support. Sales Insights is a legacy off...
Work IQ: Updating documents in Office
Work IQ enables agents to create and edit Microsoft Office documents using organizational context, helping users produce and update content mo...
Microsoft Purview: Information Protection – Apply default SharePoint library labels to data at rest
Enables auto‑labeling of existing SharePoint files to match the default sensitivity label configured on their document library. This helps org...