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
M365 Admin
M365 Admin

by João Ferreira

Share post:

Related posts

Microsoft Outlook: Drag and drop calendar events to reschedule meetings

Microsoft Outlook will support drag-and-drop rescheduling of calendar events in day and multi-day views starting late August 2026. Users can m...

13 hours ago

Microsoft 365 Copilot: Import Executive Assistant data with People connectors

Microsoft 365 People connectors now ingest Executive Assistant data from external HR systems like SAP SuccessFactors and Workday into Microsof...

13 hours ago

Microsoft Viva: Viva Glint: Configure user and survey data retention for deleted users in Viva Glint

Microsoft Viva Glint introduces a new admin control to configure retention or deletion of survey responses and identifiable user data when use...

13 hours ago

Microsoft OneDrive: Refreshed file browsing and filtering experience in OneDrive Web

OneDrive for the web will update its file browsing to match the modern SharePoint experience, featuring improved navigation and enhanced filte...

13 hours ago

Windows device recovery in 2026: A guide for IT pros

Rollout schedule: The new guide is already available. All solutions and tools are already available as well. Impact on your organization: Wind...

13 hours ago

Microsoft Copilot app: Opt in selected devices to test the updated Copilot desktop app

Starting August 18, 2026, administrators can opt in selected Windows and Mac devices to test the updated Microsoft Copilot desktop app with a ...

13 hours ago

Microsoft Teams: Report a Security Concern in Meetings

Microsoft Teams will enable meeting organizers and attendees to report suspicious, malicious, or potentially fraudulent activity directly from...

20 hours ago

Microsoft Copilot (Microsoft 365): Federated Copilot Connectors in Microsoft 365 Copilot

Federated Copilot connectors enable users to securely connect Microsoft Copilot to their favorite third party sources, retrieving data in real...

20 hours ago

Microsoft Copilot (Microsoft M365): Delegated prompt publishing for organization prompts

This release follows the availability of organization prompts, providing admins the ability to upload custom prompts for their organization in...

20 hours ago

Public preview: Manage agents across multiple tenants from the Microsoft 365 admin center

Multi-tenant agent management is in public preview, allowing partners and enterprise admins to view and manage agents across connected tenants...

1 day 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.