Welcome to the IBM Community, a place to collaborate, share knowledge, & support one another in everyday challenges. Connect with your fellow members through forums, blogs, files, & face-to-face networking.
IBM Security Community In this user community of over 15,000 members, we work together to overcome the toughest challenges of cybersecurity. Join the Community
Author - @Lakshmeesh C Hegde
The Exchange Online PowerShell V2 module (abbreviated as the EXO V2 module) uses modern authentication to connect to the Exchange-related PowerShell environment in Microsoft 365.
Some key points about the EXO V2 module:
Before we can install the Exchange Online PowerShell V2 module, we need to set up the system.
If Install-Module PowershellGet -Force already installed
Install the Exchange Online Management module. Press Y and Enter.
To check the version of the module that's currently installed
Start your connection to Exchange Online
Connect to Exchange Online PowerShell using the EXO V2 module with or without MFA.
#Set the username:$username = 'Your User Name ' <Enter>
#Set the password:$password = 'Your Password here ' <Enter>
#Clear any existing sessions:get-pssession | remove-pssession
#Convert the password to a secure string:$securepassword = convertto-securestring $password -asplaintext -force
#Create the credentials object:$PSCredObj = New-Object System.Management.Automation.PSCredential($username,$securepassword)
#Open the Office365 session:Connect-ExchangeOnline -Credential $PSCredObj -ConnectionUri $serveruri
Step 1: Open the Cloud Extender Config Tool and Navigate to the Exchange module
Step 21. Enter the hostname.
2. Enter the Username and password.
3. Click on Validate All Accounts.
4. Click on Next5. Click on SaveHow can the Proxy Setting Exchange Online Credentials be Verified using PowerShell?
#Set the username:$username = 'Your User Name ' <Enter>#Set the password:
$password = 'Your Password here ' <Enter>#Clear any existing sessions:
get-pssession | remove-pssession#Convert the password to a secure string:
$securepassword = convertto-securestring $password -asplaintext -force#Create the credentials object:
$PSCredObj = New-Object System.Management.Automation.PSCredential($username,$securepassword)
$proxysettings = New-PSSessionOption -ProxyAccessType IEConfig#Set the URI:
$serveruri = 'https://ps.outlook.com/powershell/'#Open the Office365 session:
3. Select the checkbox Use IE proxy for Office365 PowerShell connection
4. Click on Validate All Accounts.
5. Click on Next6. Click on Save
O365 currently supports only TLS 1.2 protocol. The PowerShell command we use to connect to exchange online may not using that protocol and hence the handshake may be failing.
To Solve the issue please follow the below steps:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v2.0.50727] "SystemDefaultTlsVersions" = dword:00000001 "SchUseStrongCrypto" = dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319] "SystemDefaultTlsVersions" = dword:00000001 "SchUseStrongCrypto" = dword:00000001
The new Exchange Online module is powerful and makes working with Exchange Online a lot easier. I hope this article helped you to switch to Modern authentication for the Cloud Extender Exchange Active Sync module.
If you have any questions, just drop a comment below.
Find out more about Unified Endpoint Management: https://www.ibm.com/security/unified-endpoint-managementFind out more about IBM Security MaaS360 with Watson: https://www.ibm.com/products/unified-endpoint-management