Cannot contact web site 'XXXX-admin.sharepoint.com' or the web site does not support SharePoint Online credentials

Follow

Comments

3 comments

  • Avatar
    Britton Karon

    Using $UserCredential = Get-Credential throws the legacy login window. By using this, you are prevented from using the modern login. As such, the script above fails. The script above works if you eliminate the credentials piece:


    Connect-SPOService -URL https://XXXX-admin.sharepoint.com
    Set-SPOTenant -LegacyAuthProtocolsEnabled $True

     

  • Avatar
    Britton Karon

    After you do the Set-SPOTenant -LegacyAuthProtocolsEnabled $True, you might get the following error:

    Your migration failed checking source credentials. The Application ID (AppID) for which the service ticket is requested does not exist on the system.

    This means your admin account needs to an OnMicrosoft account. That is, user@xyz.onmicrosoft.com

     

  • Avatar
    Rob Latino

    Hi Britton Karon,

    I'm going to run this feedback by our technical SMEs and validation team and will update the article accordingly when ready. I'll follow up in these comments once the article is updated. We appreciate your feedback.

Please sign in to leave a comment.