I don't think I am exceeding these params, but I would like to throw this out there for you to see if anyone has experienced these troubles.
Tried this command:
set-item wsman:\localhost\shell\maxshellsperuser 1000
Also set these params.
Winrs
AllowRemoteShellAccess = true
IdleTimeout = 7200000
MaxConcurrentUsers = 100
MaxShellRunTime = 2147483647
MaxProcessesPerShell = 10000
MaxMemoryPerShellMB = 4096
MaxShellsPerUser = 1000
New-PSSession : [serverx] Connecting to remote server server failed with the following error message : The
WS-Management service cannot process the request. This user has exceeded the maximum number of concurrent shells allowed for this plugin. Close at
least one open shell or raise the plugin quota for this user. For more information, see the about_Remote_Troubleshooting Help topic.
At C:\vCOcoreScripts\generalFileCopyGuest.ps1:14 char:12
+ $session = New-PSSession -cn server -Credential $mycreds -Au ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotingTransportException
+ FullyQualifiedErrorId : -2144108060,PSSessionOpenFaile