PS: Max Concurrent Shells Error

less than 1 minute read

Description:

So the other day I got an error I had never seen before:

1
2
3
4
5
   Get-PhoneNumbers : Connecting to remote server admin1a.online.lync.com failed with the following error message : The
   WS-Management service cannot process the request. The maximum number of concurrent shells for this user has been
   exceeded. Close existing shells or raise the quota for this user. For more information, see the
   about_Remote_Troubleshooting Help topic.
   At C:\scripts\script.ps1:486 char:2

To Resolve:

  1. Run Set-Item WSMan:\localhost\Shell\MaxShellsPerUser 100 or winrm set winrm/config/winrs '@{MaxShellsPerUser="100"}'

-----------------------------------------------------------
Spotted a mistake in this article? Why not suggest an edit!
Did you like the article? Donations are always welcome!
-----------------------------------------------------------

Comments