I came across this error message regarding the number of concurrent shells being exceeded while using EMC 2010.
Connecting to the remote server failed with the following error message. The WS-Management service cannot process the request. This user is allowed a maximum of 18 concurrent shells, which has been exceeded. Close existing shells or raise the quota for this user.
The above error message is self explanatory. The user in question has more than 18 concurrent shell connections to the Exchange server, probably in a number of remote sessions to various servers.
The limit is imposed by the throttling policy in Exchange. In my case, the default policy has the maximum PowerShell concurrency set to 18.
How to fix this issue?
- Close any unused/unwanted shell connections
- Edit the throttling policy for the user and raise the limit to a higher value, say 25. Run Set-ThrottlingPolicy Default* –PowerShellMaxConcurrency 25 to set it. If you have a number of throttling policy, you need to find the one that is applied to that user and edit it.
- You can also create a new policy with higher limits and apply it to the user (maybe for all admins).
Thanks for the helpful article, it helped me lot.
Thanks Viki
Thanks Lukas. This worked for me as well… :-)
Thank you Lukas. Simple recycle did the job!
Thanks for the tip Terry.
Hello Rajith, thanks for your post. I’ve come across the same issue recently and I found out that “rycycling” the MSExchangePowerShellAppPool Application Pool in IIS on CAS servers fixed the problem for the affected user. Before recycling I also tried to close any powershell.exe processes for that user user but did not find any. Hope that rycycling pool can also help others with the same problem…
Thanks for the tip Lukas. I am sure it will help others who read this post.
Yes, rycycling the MSExchangePowerShellAppPool Application Pool did the job for me too! Thank you Lukas
Glad it helped Lukas
Thanks Lukas. This worked for me..:)
Hi ,
We are running an automated application to create exchange mailboxes and for other exchange stuffs and we are getting same error which you have mentioned in above screenshot.
As temp Solution we have increased PowerShell concurrency to 40
I just wanted to know what / Which command I need run to Close any unused/unwanted shell connections.
Thanx
Sushant
Hi Sushant,
Just close any powershell sessions that are running manually. You can write a small script for that if you want to scan a list of servers.