Error: Object doesn't support property or method 'includes' when Connecting to a MS Service from Power Shell

Wayne Day - Administrator 1 Reputation point
2021-06-04T18:51:17.437+00:00

When using Connect commands in Power Shell, such as Connect-ExchangeOnline or MSOL-Connect, the authentication window comes up but returns this error, after entering account and password. 102613-image.png

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Marilee Turscak-MSFT 37,206 Reputation points Microsoft Employee Moderator
    2021-06-04T19:34:21.443+00:00

    Based on the information I could find about this error message, it looks like it's associated with that JS file that's mentioned in the screenshot. Most browsers do not support this property and it is recommended to use indexOf().

    1 person found this answer helpful.
    0 comments No comments

  2. DukeSilversJazz 6 Reputation points
    2021-06-10T21:04:12.003+00:00

    Getting this exact message too, seemed to start within the last week. When calling Connect-MsolService and entering username/password, the MFA prompt never appears but the OP's error does (my account has MFA Enabled). Connect-ExchangeOnline works for us okay. Is this an issue w/ the MSOnline module specifically (running latest version 1.1.183.57) where an update would address?

    0 comments No comments

  3. pk 11 Reputation points
    2021-06-10T22:06:43.793+00:00

    I have same error when I'm trying to connect in sql server management studio with Azure Active Directory - Universal with MFA.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.