Tuesday, May 30, 2017

Enable modern authentication for Office 2013 clients

Enable modern authentication for Office 2013 clients

REGISTRY KEY
TYPE
VALUE
HKCU\SOFTWARE\Microsoft\Office\15.0\Common\Identity\EnableADAL
REG_DWORD
1
HKCU\SOFTWARE\Microsoft\Office\15.0\Common\Identity\Version
REG_DWORD
1

Disable modern authentication on devices

REGISTRY KEY
TYPE
VALUE
HKCU\SOFTWARE\Microsoft\Office\15.0\Common\Identity\EnableADAL
REG_DWORD
0

IMPORTANT: Modern authentication is already enabled for Office 2016 clients, you do not need to set registry keys for Office 2016.


Article from:
https://support.office.com/en-us/article/Enable-Modern-Authentication-for-Office-2013-on-Windows-devices-7dc1c01a-090f-4971-9677-f1b192d6c910



Enable modern authentication in Exchange Online


  1. Connect to Exchange Online PowerShell as shown here.
  2. Run the following command in Exchange Online PowerShell:
    Set-OrganizationConfig -OAuth2ClientProfileEnabled $true
  3. To verify that the change was successful, run the following command in Exchange Online PowerShell:
    Get-OrganizationConfig | Format-Table -Auto Name,OAuth*

Monday, May 1, 2017

Scenario :
Error while running command O365 "Connect-ExchangeOnline.ps1"

Issue :
Following Error received

New-PSSession : [outlook.office365.com] Connecting to remote server outlook.office365.com failed
with the following error message: The WinRM client cannot process the request. Basic
authentication is currently disabled in the client configuration. Change the client
configuration and try the request again. For more information, see the
about_Remote_Troubleshooting Help topic.
At C:\Scripts\Connect-ExchangeOnline.ps1:2 char:12
+ $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri ht ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New
   -PSSession], PSRemotingTransportException
    + FullyQualifiedErrorId : -2144108321,PSSessionOpenFailed
Import-PSSession : Cannot validate argument on parameter 'Session'. The argument is null.
Provide a valid value for the argument, and then try running the command again.
At C:\Scripts\Connect-ExchangeOnline.ps1:3 char:18
+ Import-PSSession $Session
+                  ~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Import-PSSession], ParameterBindingValidationExc
   eption
    + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.ImportPSSessionCommand


Resolution :

1. Check the Service "Windows Remote Management (WS-Management)

Get-Service "Windows Remote Management (WS-Management)"
If this service is stop, Start "WinRM"

2. From Registry i.e RegEdit.exe

Locate the following
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WinRM\Client]

find the Dword, if it is set to "0", Enable it to 1
"AllowBasic"=dword:00000001