Before acquiring Office 365 endpoint, there are prerequisites described in this document:
However, there may be some problems performing 'Install-Module MSOnline' step.
1) 'Install-Module MSOnline' command fails with the following error:
This happens because PowerShell major version should be 5 or greater.
Windows 2012 and 2012 R2 provides version 4. Check your PowerShell version:
Download Windows Management Framework 5.1 (Windows update KB3191564) and install it. Machine restart is required. Download location:
See, for instance,this article for details: http://www.blogabout.cloud/2019/11/1065/
2) 'Install-Module MSOnline' command fails with the following error:
NuGet module is required for Install-Module to work, but it can't be downloaded.
This happens because PowerShell 5.1 uses SSL 3.0 and TLS 1.0 by default, while lower version requires to download NuGet. Check which security protocols are enabled:
Enable TLS 1.2:
In case of 64-bit .Net Framework use this command:
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\.NetFramework\v4.0.30319' -Name 'SchUseStrongCrypto' -Value '1' -Type DWord
In case of 32-bit .Net Framework use this command:
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\.NetFramework\v4.0.30319' -Name 'SchUseStrongCrypto' -Value '1' -Type DWord
Then restart PowerShell
See, for instance, this article for more details: https://www.alitajran.com/unable-to-install-nuget-provider-for-powershell/