Pre-requisites for O365 User Enrollment in AD Self-Serve Portal
AzureAD & Exchange Online PowerShell V2 (abbreviated as EXO V2) modules are mandatory to be installed by running PowerShell as Administrator before adding Office 365 domain into AD Self Service Portal.
Details of the Procedure:
- Open PowerShell
- Click on the search box at the taskbar and type powershell. This action will bring up the PowerShell edition of your preference.
- Look for Windows PowerShell or just PowerShell.
- Right-click on the menu item and select Run as administrator.
- Install-Module AzureAD
- Install-Module -Name ExchangeOnlineManagement.
In some cases, it is found that point 2 or 3 mentioned above fail and error shown in below screenshot is encountered.
To Resolve above error, an additional command is required to be run which is shown below.
C:\[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12