Applications Systems

Access Denied: WinRM has exceed the number of user connections allowed

This article describes where you see the following error in a SAM component details: Access Denied: WinRM has exceed the number of user connections allowed.

First published date

11/29/2018 10:49 PM

Last published date

6/25/2020 9:30 PM

Overview

Access Denied: WinRM has exceed the number of user connections allowed.

Product section

Server Application Monitor

Resolution

Open either command prompt or PowerShell session in Administrator context.


To view the WinRS settings, type:
In CLI: winrm get winrm/config/winrs
In PS: Get-Item WSMan:\localhost\Shell* | Select-Object Name,Value

To modify MaxConcurrentUsers, type:
In CLI: winrm set winrm/config/winrs @{MaxConcurrentUsers = "#"}
In PS: Set-Item WSMan:\localhost\Shell\MaxConcurrentUsers #

To modify MaxShellsPerUser, type:
In CLI: winrm set winrm/config/winrs @{MaxShellsPerUser="#"}
In PS: Set-Item WSMan:\localhost\Shell\MaxShellsPerUser #

To modify MaxMemoryPerShell, type:
In CLI: winrm set winrm/config/winrs @{MaxMemoryPerShellMB="#"}
In PS: Set-Item WSMan:\localhost\Shell\MaxMemoryPerShellMB #