Fix ResourceUnavailable When Connecting to Security and Compliance PowerShell
Question details
Users are unable to connect to the Microsoft 365 Security and Compliance center via PowerShell due to a connection failure.

- Product
- Microsoft 365 Security and Compliance
- Device & OS
- not provided
- Scenario
- Attempting to establish a remote session using the Connect-IPPSSession command in PowerShell.
- Observed behavior
- The connection attempt fails and returns a 'ResourceUnavailable' error.
Ensure you are running Windows PowerShell as an Administrator and have the necessary Microsoft Purview compliance roles assigned to your admin account.
Update the ExchangeOnlineManagement Module
Updating to the latest module version resolves most compatibility bugs that trigger the ResourceUnavailable error.
Outdated versions of the ExchangeOnlineManagement module often struggle to authenticate properly with modern Microsoft 365 compliance endpoints. Forcing an update via an elevated PowerShell prompt is the most effective fix.
Click the Start menu, type 'PowerShell', right-click on 'Windows PowerShell' (preferably version 5.1), and select 'Run as administrator'.
Type the command 'Update-Module -Name ExchangeOnlineManagement' and press Enter. If prompted to trust the repository, type 'Y' and press Enter.
Once the update completes, type 'Connect-IPPSSession' and provide your administrative credentials to verify the connection is now successful.
Verify PowerShell Version Compatibility
Mismatched PowerShell versions can cause the connection modules to fail silently or return resource errors.
Confirm Microsoft 365 Permissions and Plan
Check that your user account has the backend authorization to access Security & Compliance resources.
Looking for a Simpler Office Solution? Try WPS Office
If managing Microsoft 365 environments and running complex PowerShell scripts feels overwhelming, WPS Office provides a straightforward, standalone desktop alternative. Enjoy a lightweight suite that easily handles your document tasks without needing cloud-based administrative setups.
- 1. Download the Installer: Visit the official WPS Office website and click the free download button for your operating system.
- 2. Install the Suite: Run the downloaded installer and follow the quick on-screen instructions to set up the software.
- 3. Open Your Files: Launch WPS Office and drag and drop your existing Microsoft Office documents directly into the workspace.

Frequently Asked Questions
What causes the Connect-IPPSSession ResourceUnavailable error?
This error is typically caused by an outdated ExchangeOnlineManagement module, incompatible PowerShell versions, lack of required Microsoft Purview roles, or regional service connectivity problems in Microsoft 365.
How do I check my current PowerShell version?
Open your PowerShell console and type '$PSVersionTable'. Look at the 'PSVersion' value. It is highly recommended to use Windows PowerShell 5.1 for the most stable connection with Microsoft 365 compliance modules.
Do I need special permissions to connect to Security and Compliance via PowerShell?
Yes, your Microsoft 365 account must be assigned the necessary Microsoft Purview roles (such as Compliance Administrator), and your subscription plan must actively support these compliance features.
Can I force the ExchangeOnlineManagement module to reinstall?
Yes. If standard updates fail, you can run 'Install-Module -Name ExchangeOnlineManagement -Force' as an administrator to overwrite the existing corrupted or outdated module files.




