Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Not able to change the idle session limit of Remote desktop services

$
0
0

Hi,

When i go to this path in powershell, trying to change the idle , active and disconnected session limit to 4,5,4 . It doesn't change instead of  changing it shows be "Never" used. Should i set the timelimitpolicy value to "1" or  try to change the registry key of the sessionlimit . Please help . I have tried a lot but just not able to change the remote desktop services.

PS RDS:\RDSConfiguration\Connections\RDP-Tcp\SessionTimeLimitSettings> set-item timelimitpolicy -value 0

cmdlet Set-Item at command pipeline position 1
Supply values for the following parameters:
IdleSessionLimit: 4
ActiveSessionLimit: 5
DisconnectedSessionLimit: 4

It doesn't change the value of the sessions to the this values instead it shows me in the properties of RDP-TCP as never for all the limits.  If i try this , i get an error.


PS RDS:\RDSConfiguration\Connections\RDP-Tcp\SessionTimeLimitSettings> set-item timelimitpolicy -value 0

cmdlet Set-Item at command pipeline position 1
Supply values for the following parameters:
IdleSessionLimit: 4 hours
ActiveSessionLimit: 5 hours
DisconnectedSessionLimit: 4hours

Set-Item : Cannot bind parameter 'IdleSessionLimit'. Cannot convert value "4hours" to type "System.UInt32". Error: "
ut string was not in a correct format."
At line:1 char:9
+ set-item <<<<  timelimitpolicy -value 0
    + CategoryInfo          : InvalidData: (RDS:\RDSConfigu...timelimitpolicy:String) [Set-Item], ParameterBindingEx
   ption
    + FullyQualifiedErrorId : ArgumentError,Microsoft.PowerShell.Commands.SetItemCommand


Viewing all articles
Browse latest Browse all 21975

Trending Articles