An interesting issue occurred tonight during the upgrade of AAD Connect from 1.1.380 to the latest version. Of course, time was of the essence, so an error immediately after the Credential prompt caused quite a bit of angst, and seemed impossible to work around.
Unfortunately searching thru the install log under the C:\Program Data\AADConnect directory didn’t provide any more information than what was displayed on the screen during the wizard, and the error pointed to the MSOnline PowerShell module, however reboot and re-installation of various versions made no difference.
The error :
[22:08:38.101] [ 10] [ERROR] AzureTenantPage: Caught exception when retrieving user role information from Windows Azure.
Exception Data (Raw): Microsoft.Online.Deployment.PowerShell.PowerShellInvocationException: An error occurred while executing the ‘Get-MsolUser’ command. The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the parameters that take pipeline input. —> System.Management.Automation.ParameterBindingException: The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the parameters that take pipeline input.
The root cause, shockingly, is PowerShell transcription.
Open up policy editor, navigate to Computer Configuration / Administrative Templates / Windows Components / Windows PowerShell and change the setting for Turn on Powershell Transcription from Enabled to Not Configured.
Re-launch the installer, select repair, the wizard will restart the install and you can breathe easy!