You can't connect to Office 365, Windows Azure, or Windows Intune by using the Windows Azure Active Directory Module for Windows PowerShell

Article translations Article translations
Article ID: 2494043 - View products that this article applies to.
Expand all | Collapse all

PROBLEM

When you try to use the connect-MSOLService cmdlet in the Windows Azure Active Directory Module for Windows PowerShell to connect to a Microsoft cloud service such as Office 365, Windows Azure, or Windows Intune, your attempt is unsuccessful. Instead, you receive one of the following error messages:
Connect-MsolService : Exception of type 'Microsoft.Online.Administration.Automation.MicrosoftOnlineException' was thrown.
Connect-MsolService : Access Denied. You do not have permissions to call this cmdlet.
Connect-MsolService : The user name or password is incorrect. Verify your user name, and then type your password again.

SOLUTION

To resolve this issue, use one of the following Microsoft Base Knowledge Base articles, as appropriate for your situation:
  • 2887306 "Connect-MsolService: Exception of type was thrown" error when you use the connect-MSOLService cmdlet to connect to Office 365, Windows Azure, or Windows Intune
  • 2887685 "Access Denied" error when you use the connect-MSOLService cmdlet to connect to Office 365, Windows Azure, or Windows Intune
  • 2887705 "The user name or password is incorrect" error when you use the connect-MSOLService cmdlet to connect to Office 365, Windows Azure, or Windows Intune

MORE INFORMATION

For more information about Windows Azure Active Directory Module for Windows PowerShell, see Manage Windows Azure Active Directory by using Windows PowerShell.

Still need help? Go to the Office 365 Community website or the Windows Azure Active Directory Forums website.

Properties

Article ID: 2494043 - Last Review: November 13, 2013 - Revision: 35.0
Applies to
  • Windows Azure
  • Microsoft Office 365
  • Microsoft Office 365 for enterprises (pre-upgrade)
  • Microsoft Office 365 for education  (pre-upgrade)
  • Microsoft Office 365 for small businesses  (pre-upgrade)
  • CRM Online via Office 365 E Plans
  • Windows Azure Recovery Services
Keywords: 
o365 o365a o365e o365022013 after upgrade o365062011 pre-upgrade o365m o365p KB2494043

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com