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 365: [Education] Microsoft Learning Zone – Improve Lesson Insights

See where your class is struggling and which students need support, with lesson-level results for every student. Aggregated responses show the...

1 day ago

Dynamics 365 Project Operations: Invoice usability enhancements

When billing teams review an invoice, they need to see where it stands, which transactions it includes, and what’s still waiting to be b...

1 day ago

Dynamics 365 Commerce: Unified Pricing Management – Require manager approval for price overrides and manual discounts that exceed margin limits

Retailers can protect their profitability without slowing down store operations. Sales associates can still adjust prices to close a sale. Any...

1 day ago

Dynamics 365 Finance: Faster cube data loading with optimized dataflows

The Matrix visual now provides clearer control over how zero and blank values are handled during planning. Users can explicitly save 0 as a pl...

1 day ago

Dynamics 365 Commerce: Unified Pricing Management – Attribute-based margin thresholds and tiers for approvals and reporting

Pricing managers can set margin controls that match how the business actually sells, instead of one threshold for everything. Each product, ch...

1 day ago

Microsoft SharePoint Online and OneDrive for the web: Updated search experience with Copilot Search

SharePoint Online and OneDrive on the web are updating to a unified Copilot Search experience with natural-language prompts, AI summaries, and...

1 day ago

Microsoft Teams: Automatically add tag members to channels with Workflows

Microsoft Teams will introduce a Workflows app template to automatically add users to channels when they are added to a team tag. This optiona...

1 day ago

Microsoft SharePoint: Data access governance report for group permissions

Microsoft SharePoint is introducing a Data access governance report in the admin center to help administrators identify sites accessible to sp...

1 day ago

Action required: Exchange Online Admin API MailboxFolderPermission response update

Microsoft will update the Exchange Online Admin API v2.0 MailboxFolderPermission endpoint to return the User property as a structured object w...

1 day ago

Microsoft Planner: Planner capabilities in Copilot Cowork through the Planner Plugin

The Planner Plugin integrates Microsoft Planner with Copilot Cowork, enabling task prioritization, completion assistance, plan creation, visua...

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.