Compliance Problems

Fix ResourceUnavailable When Connecting to Security and Compliance PowerShell

Algirdas JasaitisAlgirdas Jasaitis Oct 10, 2026 869 views

Question details

Users are unable to connect to the Microsoft 365 Security and Compliance center via PowerShell due to a connection failure.

How to Fix ResourceUnavailable Error When Connecting to Security and Compliance PowerShell
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.
Before you start

Ensure you are running Windows PowerShell as an Administrator and have the necessary Microsoft Purview compliance roles assigned to your admin account.

Solution 1Recommended

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.

1
Launch PowerShell as Administrator

Click the Start menu, type 'PowerShell', right-click on 'Windows PowerShell' (preferably version 5.1), and select 'Run as administrator'.

2
Run the Update Command

Type the command 'Update-Module -Name ExchangeOnlineManagement' and press Enter. If prompted to trust the repository, type 'Y' and press Enter.

3
Test the Connection

Once the update completes, type 'Connect-IPPSSession' and provide your administrative credentials to verify the connection is now successful.

Alternative Reinstallation: If the update command fails, you can perform a clean installation by running 'Install-Module -Name ExchangeOnlineManagement -Force'.
Free Microsoft Office alternative

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. 1. Download the Installer: Visit the official WPS Office website and click the free download button for your operating system.
  2. 2. Install the Suite: Run the downloaded installer and follow the quick on-screen instructions to set up the software.
  3. 3. Open Your Files: Launch WPS Office and drag and drop your existing Microsoft Office documents directly into the workspace.
Fully compatible with Microsoft Word, Excel, and PowerPoint formats (.docx, .xlsx, .pptx)Lightweight installation with zero reliance on cloud-based PowerShell modulesFamiliar and intuitive user interface for a seamless migrationRich suite of built-in PDF editing and document management tools
QA img-9

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.