Share via

Security & Compliance PowerShell. ResourceUnavailable error

Anonymous
2023-12-07T13:27:29+00:00

Trying to remove an email from all mailboxes (maybe the next question) but I'm stuck here. When I try

Connect-IPPSSession -UserPrincipalName ******@mycompany.com

I get WARNING: Your connection has been redirected to the following URI: "https://eur03b.ps.compliance.protection.outlook.com/Powershell-LiveId?BasicAuthToOAuthConversion=true;PSVersion=7.4.0" ResourceUnavailable: Connecting to remote server eur03b.ps.compliance.protection.outlook.com failed with the following error message : For more information, see the about_Remote_Troubleshooting Help topic.

Anything extra roles I need to give myself permission for or is there something else I need to do? I'm already connected via
connect-exchangeOnline -userprincipalname ******@mycompany.com and can otherwise use powershell with exchange commands.

Is this feature even available for m365 Business Premium?

Microsoft 365 and Office | Subscription, account, billing | For business | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

4 answers

Sort by: Most helpful
  1. Anonymous
    2024-01-24T13:00:57+00:00

    I gave up trying. I'm not currently going any further with it as I ended up doing the task manually.

    However, after seeing you had a similar issue I just thought I'd ask ChatGPT to brainstorm the issue and it came up with some ideas on how to fix it. After a bit of messing about, I seem to have got it to work. Here are my settings.

    Open up PowerShell 5.1 in Admin mode

    Run "Update-Module -Name ExchangeOnlineManagement" (I assume you already have that module installed)

    As a bit of a newbie with PowerShell with M365, I've noticed that to get best results, you often have to match the modules with a specific version of PowerShell for them to work as planned. I've got about 5 different versions of PowerShell if you include things like the ISE and SharePoint Online Management Shell and it's a bit of a lottery as to which modules work with which.

    Was this answer helpful?

    10 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2024-01-24T11:56:16+00:00

    Hi,

    i ran into the same issue. Did you find any solution?

    Best Regards

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2023-12-07T13:41:42+00:00

    I was literally following that article to try and connect. Following it is not working.

    Was this answer helpful?

    0 comments No comments
  4. NoOneCan 7,795 Reputation points Volunteer Moderator
    2023-12-07T13:33:07+00:00

    Was this answer helpful?

    0 comments No comments