Error Connect-PNPOnline with app password RRS feed

  • Question

  • Hello,

    I am trying to log on to a SharePoint site with a user and app password using Connect-PnPOnline and I get the following error:

    PS C:\WINDOWS\system32> Add-PnPStoredCredential -Name PnPProv -Username -Password (ConvertTo-SecureString -String "app password" -AsPlainText -Force)
    PS C:\WINDOWS\system32> Connect-PnPOnline -Url -Credentials PnPProv
    Connect-PnPOnline : 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-PnPOnline -Url ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Connect-PnPOnline], IdcrlException
        + FullyQualifiedErrorId : Microsoft.SharePoint.Client.IdcrlException,SharePointPnP.PowerShell.Commands.Base.ConnectOnline

    Authentication normally works with an app password and this user.

    Kind regards


    Tuesday, February 25, 2020 8:06 AM

All replies