--- title: "Test Failure with RapidIdentity Exchange Agent - Connect-MSOLService is not recognized" slug: "test-failure-with-rapididentity-exchange-agent-connect-msolservice-is-not-recognized" updated: 2022-09-23T17:48:50Z published: 2022-09-23T17:48:50Z canonical: "help.rapididentity.com/test-failure-with-rapididentity-exchange-agent-connect-msolservice-is-not-recognized" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.rapididentity.com/llms.txt > Use this file to discover all available pages before exploring further. # Test Failure with RapidIdentity Exchange Agent - Connect-MSOLService is not recognized RapidIdentity Exchange Agent is failing test with the following error ![Screen Shot 2022-09-19 at 10.30.56 AM.png](https://cdn.document360.io/4d958006-b877-42af-8de5-00e3bb7fe41d/Images/Documentation/Screen%20Shot%202022-09-19%20at%2010.30.56%20AM%282%29.png) Run PowerShell as an Administrator and execute the following ``` Install-Module MSOnline ```