It is often useful to get the TenantID of an Azure subscription. The easiest way to the Azure tenant ID is to go in the properties of the Azure AD. You can use the this direct link : https://aad.portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/Properties In this page, you will find the Tenant ID.
Clear the folder %userprofile%\AppData\Roaming\Microsoft\Exchange\RemotePowerShell\, log off and login. Meanwhile, ensure KB4025333 is not installed on your Windows server.If so, please install KB3000850 to fix it.