Fix Exchange Hybrid Migration Remote PowerShell Error
Question details
The user needs to resolve an error in the Exchange Hybrid Configuration Wizard preventing remote PowerShell connections.

- Product
- Microsoft Exchange Server
- Device & OS
- not provided
- Scenario
- Running the Exchange Hybrid Configuration Wizard or using Exchange cmdlets for email migration tasks.
- Observed behavior
- An error message appears stating that the on-premises account is not enabled for Remote PowerShell, or cmdlets fail because the module is not imported.
Ensure you have administrative credentials for your Exchange Server and access to the Exchange Management Shell before attempting to run these configuration scripts.
Import Remote Exchange Module and Enable Remote PowerShell
Fix the issue by correctly loading the Exchange PowerShell environment and explicitly enabling Remote PowerShell for your migration account.
Often, the Exchange cmdlets are run outside the proper Exchange Management Shell or the necessary scripts haven't been loaded into the session. Importing the module manually ensures the cmdlets are recognized.
Log in to your Exchange 2016 server and launch the Exchange Management Shell as an administrator.
Run the command: Import-Module -Name "C:\Program Files\Microsoft\Exchange Server\V15\Bin\RemoteExchange.ps1" to load the required Exchange commands.
Execute the Set-User cmdlet targeted at your specific on-premises admin account to enable Remote PowerShell capabilities.
Once the account is enabled, restart the Exchange Hybrid Configuration Wizard to verify the connection error is resolved.

Verify Exchange Web Services (EWS) Virtual Directory
Check if incorrect EWS configurations or network connectivity issues are preventing the remote PowerShell connection to the server.
Need a Reliable Office Suite for Your Migration Planning?
While troubleshooting complex Exchange Server configurations, you need a lightweight and efficient productivity suite to manage your migration plans, checklists, and documentation. WPS Office provides exceptional performance and compatibility without the heavy subscription costs.

Frequently Asked Questions
Why does the Exchange Hybrid Configuration Wizard fail with a Remote PowerShell error?
This typically happens when the administrator account used to run the wizard lacks Remote PowerShell permissions, or the active PowerShell session doesn't have the necessary Exchange modules imported to recognize the required cmdlets.
How do I check if my account has Remote PowerShell enabled?
You can use the Get-User cmdlet in the Exchange Management Shell. Run 'Get-User <YourUsername> | Format-List RemotePowerShellEnabled' to check if the property is set to True for your specific account.
What should I do if the Import-Module command cannot find RemoteExchange.ps1?
Verify your Exchange Server version and installation drive. If you installed Exchange on a drive other than C: or are running an older version (like V14 for Exchange 2010), you must update the path in the Import-Module command to reflect your actual installation directory.
Can network firewalls block Remote PowerShell connections to the Exchange Server?
Yes. If your local machine cannot communicate over the required ports (typically port 80 or 443 for WinRM over HTTP/HTTPS) to the Exchange server, the Remote PowerShell session will time out or fail. Ensure your firewall policies allow this administrative traffic.




