How to raise PS connection limit

2023-01-23T07:51:42.05+00:00

I encountered the following error: "Fail to create a runspace because you have exceeded the maximum number of connections allowed : 3 for the policy party : MaxConcurrency. Please close existing runspace and try again." When working on O365.
Searching the Internet, I found that the error is related to a limit on Powershell connections which is 3.
Is there a way to raise it and avoid this kind of error in the future?

Thx in advance!

Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Limitless Technology 44,766 Reputation points
    2023-01-24T09:11:01.2766667+00:00

    Hello

    Thank you for your question and reaching out. I can understand you are having query\issues related to connections limit

    Microsoft has a Global Throttling Policy which limits simultaneous connections from one client. Only three simultaneous connections are allowed.

    Close all open PowerShell sessions with Office 365.

    This could be done using this cmdlet:

    Get-PSSession | Remove-PSSession

    Reference :

    https://learn.microsoft.com/en-us/answers/questions/645867/how-to-increase-the-value-for-maxconcurrency-to-o3

    --If the reply is helpful, please Upvote and Accept as answer--


  2. Security and Compliance Integration 0 Reputation points
    2023-01-26T10:39:03.55+00:00

    So according to the attached link I can issue a service request to raise the limit, but how can I do that?

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.