question

yagobert-1976 avatar image
0 Votes"
yagobert-1976 asked EchoDu-MSFT edited

Connect-SPOService fails with The partner returned a bad sign-in name or password error

Connect-SPOService -Url https://tenantch-admin.sharepoint.com -Credential ictcvazuresvc@tenant.ch
Connect-SPOService : The partner returned a bad sign-in name or password error. For more information, see Federation Error-handling Scenarios.
In Zeile:1 Zeichen:1
+ Connect-SPOService -Url https://tenantch-admin.sharepoint.com -Credentia ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Connect-SPOService], IdcrlException
+ FullyQualifiedErrorId : Microsoft.SharePoint.Client.IdcrlException,Microsoft.Online.SharePoint.PowerShell.ConnectSPOService

office-sharepoint-online
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AnupamShri avatar image
0 Votes"
AnupamShri answered

The account may have MFA enabled. Did you try just using Connect-SPOService -Url https://tenantch-admin.sharepoint.com and typing in the credentials in the prompt?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JoyZ avatar image
0 Votes"
JoyZ answered EchoDu-MSFT edited

@yagobert-1976,

As AnupamShri said, it is required if the account is using multi-factor authentication: Connect-SPOService -Url https://contoso-admin.sharepoint.com

In addition, if you connect to SharePoint online admin via PowerShell through a proxy server, run following commands and retry Connect-SPOService

 $cred = [System.Net.CredentialCache]::DefaultCredentials
 [System.Net.WebRequest]::DefaultWebProxy.Credentials = $cred

If an Answer 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.


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@yagobert-1976,

Do you have any progress on this issue?

Please remember to update this thread if you need further assistance.

0 Votes 0 ·

@yagobert-1976 If Julie's reply helps you, please remember to accept her reply as answer via the "Accept Answer" button, it will be beneficial to others in this forum who meet the same issue in the future. Thanks for your understanding and cooperation.

0 Votes 0 ·