Skip to content

Powershell connect-Exchangeonline #478

Open

Description

@josepmmadd

I want to connect to exchange online in order to set permissions to an account or office365 for send and receive emails without need verification... Form daemon applications.

I'm comfigure this with Powershell and i cannot continue because i can not connect with Exchange online.

When i put the command:

Connect-ExchangeOnline -UserPrincipalName josepm@maddinformatics.onmicrosoft.com

Raise this error:

Connect-ExchangeOnline: A parameter cannot be found that matches parameter name 'UserPrincipalName'.

What appens. Can you help me ?

Thanks

Activity

  1. added
    bug
    Triage-needed
    on Sep 10, 2024
  2. mbifeld commented on Oct 8, 2024

    @mbifeld
    Member

    Hi josepmmadd , thank you for filing this bug and bringing this issue to our attention. Does this work for you locally outside of Cloud Shell?

  3. added and removed
    Triage-needed
    on Oct 8, 2024
  4. ivdok commented on Mar 19, 2025

    @ivdok

    I'm also having this issue in CloudShell. Bumping for visibility.

  5. mayur2281 commented on Apr 9, 2025

    @mayur2281

    Facing the same issue. Unable to add Service Principal to Microsoft Exchange to use Oauth2 for sending mail through outlook

  6. farialima-azure commented on Jun 7, 2025

    @farialima-azure

    Same problem; Using "Connect-ExchangeOnline" in the "Cloud Shell" on https://admin.exchange.microsoft.com/#/ connected me (using my UPN). So I guess this parameter isn't available in the cloud shell version

  7. mbifeld commented on Sep 9, 2025

    @mbifeld
    Member

    Hi all, does this command run successfully in your local terminals? I'm trying to understand if this is unique to Cloud Shell or not. It's very weird that it doesn't recognize a parameter.

  8. saurashtrabalaji07-netizen commented on May 1, 2026

    @saurashtrabalaji07-netizen

    Found it as lack of update of module OData DLL version should be 7.22 instead have 7.6.x.x. You cannot manually replace DLLs in Cloud Shell. Can try Uninstall-Module ExchangeOnlineManagement -AllVersions -Force
    Install-Module ExchangeOnlineManagement -Force
    commands, it might update if we luck. or else. Alternate/Try to work in Virtual Machine power shell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority 3bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions