unable to connect to Sharepoint online

Aran Billen 956 Reputation points
2024-03-06T08:58:05.86+00:00

Hi all,

I get error:  Connect-SPOService : Root element is missing. 

How do I get passed this? I am trying to change the storage space quota for users onedrive

Screenshot 2024-03-06 at 08.53.18

Microsoft 365 and Office | SharePoint | For business | Windows
Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Xyza Xue_MSFT 30,241 Reputation points Microsoft External Staff
    2024-03-07T06:04:46.7233333+00:00

    Hi @Aran Billen ,

    Root Element Missing when connecting to SharePoint online via CSOM/Powershell on windows 10 machine.

    There are two possibilities to cause this problem:

    1.This is a known issue specific to the particular machine where you are executing this code. In order to fix this issue, need to change the IPV4 DNS setting in your machine.

    2.IPV6 enabled will cause this error. Disabling IPV6.

    For more detail steps,Please refer to this article: https://learn.microsoft.com/en-us/answers/questions/238229/powershell-error-root-element-is-missing


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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.


Your answer

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