Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Symptoms
When you try to connect to Security & Compliance PowerShell by using the Connect-IPPSSession PowerShell cmdlet, you receive the following error message:
WARNING: Your connection has been redirected to the following URI: <URI>
Connecting to remote server <server name>.ps.compliance.protection.outlook.com failed with the following error message: For more information, see the about_Remote_Troubleshooting Help topic.
At C:\Program Files\WindowsPowerShell\Modules\ExchangeOnlineManagement \3.1.0\netFramework\ExchangeOnlineManagement.psm1:733 char:21...
+ FullyQualifiedErrorId : System.Management. Automation.Remoting. PSRemotingDataStructureException
Cause
The issue occurs if version 3.1.0 of the Exchange Online PowerShell V3 module is installed on the computer that you used to run the cmdlet.
You can run the following PowerShell cmdlet to verify that version 3.1.0 of the Exchange Online PowerShell V3 module is installed:
Get-InstalledModule ExchangeOnlineManagement | FL Name,Version,InstalledLocation
Resolution
To fix the issue, follow these steps:
Run the following PowerShell cmdlet in an elevated PowerShell session to update the Exchange Online PowerShell V3 module to the latest version:
Update-Module -Name ExchangeOnlineManagement
Run the following PowerShell cmdlet to verify that the Exchange Online PowerShell V3 module is updated:
Get-InstalledModule ExchangeOnlineManagement | FL Name,Version,InstalledLocation
Try again to run the Connect-IPPSSession PowerShell cmdlet to connect to Security & Compliance PowerShell.