Connect-MsolService authentication error

  • 4 Followers
  • 6 Replies |
  • This post has 1 verified answer |
Answered (Verified) This question is answered

Hello forum!

 

When I try to connect to O365 using the MOSM for PoSh I'm experiencing authentication errors all the time:

 

PS C:\Windows\system32> Connect-MsolService
Connect-MsolService : Unable to authenticate your credentials. Make sure that y
our user name is in the format: <username>@<domain>. If this problem persists,
contact Support.
At line:1 char:20
+ Connect-MsolService <<<<
    + CategoryInfo          : OperationStopped: (:) [Connect-MsolService], Mic
   rosoftOnlineException
    + FullyQualifiedErrorId : 0x80048862,Microsoft.Online.Administration.Autom
   ation.ConnectMsolService

Any idea how to solve this?

I tried several times also with other accounts that are global admins.

 

Thanks in advance,

Patrick

  • Post Points: 20
Verified Answer
All Replies
  • Hello Patrick,

    To help us narrow down the problem, I would like to confirm with you, is the global account able to log on to Microsoft Online Portal (MOP) successfully?
    Besides, please try the following steps with a new user assigned with global administrator permission .
    1. Install and configure Microsoft Online Services Module for Windows PowerShell.
    Please refer to the link below:
    http://onlinehelp.microsoft.com/en-us/office365-enterprises/hh124998.aspx
    Please note that:
    After installing Microsoft Online Service Module for Windows PowerShell, it's needed to load the Office 365 cmdlets manually.
    Open PowerShell and type <import-module MSOnline>.

    2. Run PowerShell as Administrator.
    a. Select Microsoft Online Services Module for Windows PowerShell, Right click, and choose ‘Run as administrator’.
    b. Click Yes.

    3. Connect Microsoft Online Service.
    Input 'connect-MSolService', and then input the global administrator account and password.

    If the issue persists, would you please post a screenshot about the error message you're experiencing?

    Thanks,
    Grace Shi

    • Top 50 Contributor
    • Post Points: 0
  • Hello Grace!

    Herewith I confirm that the user is global admin! ;-)

    Same issue with other, newly created global admins.

    It worked already with my normal O365 account but now I want to use Partner Network Plan because of registered as a MS partner now.

    There is already the output in my original posting. I don't assume that you need an additional screenshot, don't you?!

    Regards,

    Patrick

    • Not Ranked
    • Post Points: 0
  • Hello Patrick,

    Thanks for your confirmation.
    Based on the situation, the issue might be related with your network environment. So, would you please try to connect to Office 365 with Remote PowerShell on another computer in a public network (external of your company) to see if it can work? For example, install and configure Microsoft Online Services Module for Windows PowerShell on your pc at home.

    In addition, to help us narrow down the issue, I will appreciate if you can provide a screenshot for the error.

    Thanks,
    Grace Shi

    • Top 50 Contributor
    • Post Points: 0
  • Hello Patrick,

    How are things going? Can you connect to Office 365 in PowerShell now?

    Thanks,
    Grace Shi

    • Top 50 Contributor
    • Post Points: 0
  • Hello Grace!

    Sorry for the delay!

    I changed my laptop (not because of this issue ;-) ) and now it works as expected.

    Thanks,

    Patrick

    • Not Ranked
    • Post Points: 0
  • For anyones future reference, I made a blog post on this issue, found here: jesperstahle.azurewebsites.net

    Best regards,

    Jesper Ståhle
    Office 365 MVP

    • Top 100 Contributor
    • Post Points: 0
    Suggested by
Page 1 of 1 (7 items)