Skip to content

SharePoint Online Powershell - Root element missing error when run Connect-SPOService command #1723

@muges01

Description

@muges01

Hi Everyone,

I have newly installed SharePoint Online Management Shell (SharePointOnlineManagementShell_7521-1200_x64_en-us) on a windows 10 machine.

When i tried to run the 'Connect-SPOService -Url $adminUrl -Credential $credentials' I'm getting 'Root element is missing' error.

image

Category

  • Question
  • Typo
  • Bug
  • Additional article idea

Expected or Desired Behavior

When I ran the following command, I expect to connect to my SharePoint online tenant.

Steps to Reproduce

  1. Install the SharePointOnlineManagementShell_7521-1200_x64_en-us
  2. Open the SharePoint Online Managemnet Shell as administrator
  3. Run the following commands
    $adminUrl = "https://{domain}-admin.sharepoint.com" $userName = "admin@{domain}.onmicrosoft.com" $password = Read-Host "Please enter the password for $($userName)" –AsSecureString $credentials = New-Object -TypeName System.Management.Automation.PSCredential -argumentlist $userName, $password Connect-SPOService -Url $adminUrl -Credential $credentials

What am I missing? Any guidance to resolve this issue is appreciated.

Thank you In advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:otherCategory: unknown (does not fit any other category)type:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.type:questionQuestion... if answered, will be tagged as such.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions