I was trying to connect to Office 365 using windows azure active directory module for Windows Powershell.
$Cred = Get-Credential
Connect-MsolService -Credential $cred
It failed on my windows 7 machine with the error
Connect-MsolService : Unable to authenticate your credentials. Make sure that your user name is
in the format: <username>@<domain>. If this issue persists, contact support.
This issue happened in Windows 7 SP1 OS.
But, when I tried the same thing on a Windows 2008 R2 VM, it connected successfully.
This means that the account I was trying to login does have the permissions.
Both the machines ( windows 7 and windows server 2008 R2) have the following pre-requisites installed:
Install Microsoft Online Services Sign-in Assistant: http://www.microsoft.com/en-us/download/details.aspx?id=39267
Windows Azure Active Directory Module for Windows PowerShell (64-bit version)
I checked for other settings needed for this to work at :
(Though these settings are for Windows 8, I have all these settings in Windows 7 as well)
http://community.spiceworks.com/how_to/show/45453-how-to-prepare-a-windows-8-64-bit-pc-to-manage-windows-azure-ad-office-365-using-windows-powershell
Can someone please tell what is going wrong on my Windows 7 SP1 environment.
Thanks,
Gagan
Gagan