Howdy,
I am gonna share an error and a solution today that I encountered while connecting to Exchange Online/O365.
I was using the New-Pssession to connect to Exchange online through PowerShell.
I would always end up with the following error
New-PSSession : [outlook.office365.com] Connecting to remote server outlook.office365.com failed with the following
error message :
[ClientAccessServer=,BackEndServer=,RequestId=,TimeStamp=4/17/2017
9:57:48 AM] [FailureCategory=LiveID-InvalidCreds] Access Denied For more information, see the
about_Remote_Troubleshooting Help topic.
At line:1 char:15
+ ... XOSession = New-PSSession -ConfigurationName Microsoft.Exchange -Conn ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
gTransportException
+ FullyQualifiedErrorId : -2144108477,PSSessionOpenFailed
The user was a global Administrator on O365 so I was under the impression that it should just be enough to get this working.
Then after searching for more options, I found a place under Exchange tab, where in we can provide permissions for the Management. All you need to do is:
1. Go to Office 365 Portal
2. Click on Admin
3. Click on Exchange( it will open up a new window)
4. Click on Permissions as seen below:

5. Click on Organization Management:

6. Under members add the user account that you are trying to connect through PowerShell.

Once this is done. Authenticate again using a new powershell window and you are all set.
I am gonna share an error and a solution today that I encountered while connecting to Exchange Online/O365.
I was using the New-Pssession to connect to Exchange online through PowerShell.
I would always end up with the following error
New-PSSession : [outlook.office365.com] Connecting to remote server outlook.office365.com failed with the following
error message :
[ClientAccessServer=,BackEndServer=,RequestId=,TimeStamp=4/17/2017
9:57:48 AM] [FailureCategory=LiveID-InvalidCreds] Access Denied For more information, see the
about_Remote_Troubleshooting Help topic.
At line:1 char:15
+ ... XOSession = New-PSSession -ConfigurationName Microsoft.Exchange -Conn ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
gTransportException
+ FullyQualifiedErrorId : -2144108477,PSSessionOpenFailed
The user was a global Administrator on O365 so I was under the impression that it should just be enough to get this working.
Then after searching for more options, I found a place under Exchange tab, where in we can provide permissions for the Management. All you need to do is:
1. Go to Office 365 Portal
2. Click on Admin
3. Click on Exchange( it will open up a new window)
4. Click on Permissions as seen below:
5. Click on Organization Management:
6. Under members add the user account that you are trying to connect through PowerShell.
Once this is done. Authenticate again using a new powershell window and you are all set.