The partner returned a bad sign-in name or password error in powershell

Preethi R 21 Reputation points


I am getting "ExecuteQuery with 0 arguments : The partner returned a bad sign-in name or password error."

A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,270 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,596 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,459 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Jasreet Singh 176 Reputation points

    Please check if the username is in string format in 'quotes' and user has appropriate permissions to access the resource that you are trying to authenticate against.

  2. Amos Wu-MSFT 4,051 Reputation points

    Please check if the username and password are correct.

    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments